Description Usage Format Source Examples
Example data set to illustrate the use of the googleVis package.
1 |
A data frame with 6 observations on the following 2 variables.
City
a factor with levels Boston
Chicago
Houston
Los Angeles
Miami
New York
Popularity
a numeric vector
Google Geo Map API: https://google-developers.appspot.com/chart/interactive/docs/gallery/geomap.html
1 2 3 4 5 6 7 8 9 10 | data(CityPopularity)
G <- gvisGeoMap(CityPopularity, locationvar='City' ,numvar='Popularity',
options=list(region='US',
dataMode='markers',
colors='[0xFF8747, 0xFFB581, 0xc06000]'))
## Not run:
plot(G)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.