gvisColumnChart

Changing the width of bars and columns in googleVis

Changing the plotting width in bar-, column- and combo-charts of googleVis works identical and is defined by the bar.groupWidth argument. The dot in the argument means that it has to be split in R into bar=“{groupWidth:‘10%’}”. Example library(googleVis) cc <- gvisColumnChart(head(Population,10), xvar="Country", yvar="Population", options=list(seriesType="bars", legend="top", bar="{groupWidth:'10%'}", width=500, height=450), chartid="thincolumns") plot(cc) Your browser doesn’t support iframes. Session Info R version 3.0.1 (2013-05-16) Platform: x86_64-apple-darwin10.8.0 (64-bit) locale: [1] en_GB.