Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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