我是使用googleVis
> library(googleVis)
> trees2<-trees
>trees2$id<-as.character(1:31)
> Bubble<-gvisBubbleChart(trees2,idvar="id",xvar="Girth",yvar="Height",sizevar="Volume",options=list(vAxis="{title:'height'}",hAxis="{title:'Girth'}"))
> plot(Bubble)
我有一张图表,但圆圈太大了;;
有没有办法控制圆的大小,就像符号功能一样?
答案 0 :(得分:1)
您可以使用sizeAxis
选项
library(googleVis
trees2<-trees
trees2$id<-as.character(1:31)
Bubble<-gvisBubbleChart(trees2, idvar="id", xvar="Girth" ,yvar="Height",sizevar="Volume"
, options=list(vAxis="{title:'height'}",hAxis="{title:'Girth'}", sizeAxis = '{minValue: 0, maxSize: 10}'))
plot(Bubble)
完整的选项列表here。