Skip to content

Instantly share code, notes, and snippets.

@davidcomfort
Created November 15, 2015 20:21
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 davidcomfort/99bd4ea8b90cfe526c35 to your computer and use it in GitHub Desktop.
Save davidcomfort/99bd4ea8b90cfe526c35 to your computer and use it in GitHub Desktop.
# install.packages('googleVis')
library(googleVis)
##
## Welcome to googleVis version 0.5.10
##
## Please read the Google API Terms of Use
## before you start using the package:
## https://developers.google.com/terms/
##
## Note, the plot method of googleVis will by default use
## the standard browser to display its output.
##
## See the googleVis package vignettes for more details,
## or visit http://github.com/mages/googleVis.
##
## To suppress this message use:
## suppressPackageStartupMessages(library(googleVis))
# str(gapdata)
# head(gapdata)
chart<- gvisMotionChart(gapdata, idvar="Country",
timevar="Years",
colorvar ="Region",
xvar = "GDP per capita",
yvar = "Life Expectancy",
sizevar="Population",
chartid="GapminderData1")
plot(chart)
## starting httpd help server ... done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment