我能够使用gvisGauge进行绘图,但是我需要在图形上添加百分号(因为数字是百分数)并在图形上显示majorTicks。我怎样才能做到这一点?请帮忙。如果您还有建议使图表更有趣,我会很感激。 谢谢。 数据设置如下
gauge=data.frame(motnh=c("jan","feb","march","april","may","june"
,"july","augost","sept"),percent_s=c(-0.1,0,0.03,-0.06,-0.15,-0.39
,0.36,-0.53,-0.68))
这是我到目前为止所得到的;
gauge_plot=gvisGauge(gauge,
options=list(min=-1, max=1, redFrom=-1,
redTo=-0.3, yellowFrom=-0.3, yellowTo=0.3,
greenFrom=0.3, greenTo=1, width=800,
height=600))
plot(gauge_plot)