googleVis 0.2.15 is released: Improved geo and bubble charts

[This article was first published on mages' blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

The guys behind the Google Visualisation API don’t seem to rest. On 22 February 2012 they released an update of their API. Google added options for a gradient colour axis to bubble chart and a magnifying glass to geo chart, which opens when the user hovers over cluttered markers (excluding IE<=8). Those updates have been incorporated into version 0.2.15 of the googleVis package for R.

Examples of new features

Here are two examples demonstrating the new features.

Bubble chart with gradient colour mode

Example of a bubble chart with a colour gradient axis.


The following geo chart shows the CRAN mirrors by location around the world and for how many years they have been active since 2004. I extracted the information from the R SVN-server and the CRAN_mirrors.csv file, which is placed in the /doc folder since R version 2.0.1. Not necessarily the nicest code I have ever written, but it does the job. The cities are not geo coded (no lat/long coordinates), so it takes a little time to show them all, as Google needs to figure out where they are. Hover over a cluttered marker area to bring up the magnifying glass.

Number of years cities are hosting a CRAN mirror since 2004





NEWS

googleVis 0.2.15 [2012-03-04]
----------------------------

Changes

*  Updated documentation following a new version of the Google API
   on 22 February 2012. 
     
*  Moved vignette from folder /inst/doc to /vignettes

NEW FEATURES

*  Quoted from Google
   http://code.google.com/apis/chart/interactive/docs/release_notes.html: 
   - Added gradient color mode to bubble chart.
   - Geo chart:
     o  Region interactivity in marker mode is now disabled by
      default. How to keep the old behavior? Set the
    enableRegionInteractivity option to true.

     o  Markers are now opaque by default. How to keep the old
        behaviour? Set the markerOpacity option to 0.5.

     o  Marker size is now between 3 and 12 pixels by default. How to
        keep the old behavior? Set the sizeAxis option to {minSize: 2,
        maxSize: 30}.

     o  A magnifying glass is now opened when the user hovers over
        cluttered markers (excluding IE

To leave a comment for the author, please follow the link and comment on their blog: mages' blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)