googleVis 0.2.15 is released: Improved geo and bubble charts
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.googleVis 0.2.14 is released
Version 0.2.14 of the googleVis package was released on CRAN today.
Changes
The help files have been checked against changes of the Google Visualisation API, typos in the vignette have been ironed out (thanks to Pat Burns for pointing them out), a new section on dealing with apostrophes in column names has been added and the example in the section "Setting options" has been reviewed. For more details and demos check out the project site.
New Feature
Additionally a new visualisation function has been added: gvisBubbleChart, which provides an interface to the bubble chart of the Google Visualisation API. You could think of it as a static version of the motion chart. Here are some examples, followed by a motion chart.
>
library(googleVis)
data(Fruits)
P <- lapply(2008:2010, function(x)
gvisBubbleChart(subset(Fruits, Year %in% x), idvar="Fruit",
xvar="Sales", yvar="Expenses",
colorvar="Location", sizevar="Profit",
options=list(width=400, height=300,
colors='["#B2EE2C", "#3F4FFF"]',
title=paste("Fruit data ",x,", bubble size reflects profit", sep=""),
sizeAxis="{minValue: 0, maxSize: 12}",
vAxis=paste("{title: 'Expenses', viewWindow:{min:65, max:95},",
"baselineColor:'#EEEEEE', gridlines:{color:'#EEEEEE'}}"),
hAxis=paste("{title: 'Sales', viewWindow:{min:70, max:115},",
"baselineColor:'#EEEEEE', gridlines:{color:'#EEEEEE'}}")
))
)
bubbleCharts <- gvisMerge(P[[1]], gvisMerge(P[[2]], P[[3]]))
M <- gvisMotionChart(Fruits, "Fruit", "Year",
options=list(width=430, height=360))
plot(gvisMerge(bubbleCharts, M))