You can install
rMaps from github using the
devtools package. You will also need to install the
dev version of
rCharts, that contains several experimental features, required by
require(devtools) install_github('ramnathv/rCharts@dev') install_github('ramnathv/rMaps')
Here are some quick examples to get you started.
Example 1: CrossLet
CrossLet is an amazing mappling library that combines Leaflet and CrossFilter, allowing one to create awesome visualizations.
rMaps wraps CrossLet and provides R users with a simple interface to access its features.
library(rMaps) crosslet( x = "country", y = c("web_index", "universal_access", "impact_empowerment", "freedom_openness"), data = web_index )
Example 2: DataMaps
ichoropleth(Crime ~ State, data = subset(violent_crime, Year == 2010)) ichoropleth(Crime ~ State, data = violent_crime, animate = "Year") ichoropleth(Crime ~ State, data = violent_crime, animate = "Year", play = TRUE)
Example 3: Leaflet
map <- Leaflet$new() map$setView(c(51.505, -0.09), zoom = 13) map$tileLayer(provider = 'Stamen.Watercolor') map$marker( c(51.5, -0.09), bindPopup = 'Hi. I am a popup' ) map
License.md file in each of the charting libraries.