如何根据因子变量更改气泡的颜色?我的代码如下:
library(googleVis)
motion <- gvisMotionChart(temp1,
idvar="Location",
timevar="Year",
xvar = "Population_thousand", yvar = "AvgHouseholdDisposableIncome",
colorvar = "Country",
sizevar = "BubbleSize",
options=list(height = 620, width = 1280))
plot(motion)
今天颜色不太好,我想根据国家/地区提供更好的颜色。