Created
November 15, 2015 20:21
-
-
Save davidcomfort/99bd4ea8b90cfe526c35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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