Skip to content

Instantly share code, notes, and snippets.

@mages
Created November 20, 2011 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mages/1380267 to your computer and use it in GitHub Desktop.
Save mages/1380267 to your computer and use it in GitHub Desktop.
library(googleVis)
jscode <- "window.open('http://en.wikipedia.org/wiki/'
+ data.getValue(chart.getSelection()[0].row,0)); "
J1 <- gvisGeoMap(Exports, locationvar='Country', numvar='Profit',
options=list(dataMode="regions", gvis.listener.jscode=jscode))
plot(J1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment