googleVis 0.5.3 released
Recently we released googleVis 0.5.3 on CRAN. The package provides an interface between R and Google Charts, allowing you to create interactive web charts from R.Screen shot of some of the Google Charts |
Although this is mainly a maintenance release, I'd like to point out two changes:
- Default chart width is set to 'automatic' instead of 500 pixels.
- Intervals for columns roles have to end with the suffix ".i", with "i" being an integer. Several interval columns are allowed, see the roles demo and vignette for more details.
- The order of y-variables in core charts wasn't maintained. Thanks to John Taveras for reporting this bug.
- Width and height of googleVis charts were only accepted in pixels, although the Google Charts API uses standard HTML units (for example, '100px', '80em', '60', 'automatic'). If no units are specified the number is assumed to be pixels. This has been fixed. Thanks to Paul Murrell for reporting this issue.
3 comments :
Using your great R package is there a way of using the stroke-color and fill-color options that exist in the underlying Google charts?
After a bit of searching, I've worked out that the answer is to use Roles to pass the required style options to the Google charts. These additional options are passed via the yvar variable.
http://cran.r-project.org/web/packages/googleVis/vignettes/Using_Roles_via_googleVis.html
All very clever..!
See also an earlier post of mine: http://www.magesblog.com/2014/05/customising-lines-and-points-with.html
Post a Comment