ramnathv / rMaps

Interactive Maps from R
http://rmaps.github.io
389 stars 194 forks source link

How can I export my choropleth map ? #46

Closed pachevalier closed 10 years ago

pachevalier commented 10 years ago

Assume I've built an interactive map with rMaps. How can I export the HTML + Javascript files and use the output in a website ?

ramnathv commented 10 years ago

You can use the save method to save your map. So, for example if your map is stored in the object map, then you can do map$save('mychart.html', cdn = TRUE). Note that the cdn = TRUE option links js/css assets from an online repo. If you are using any custom topojson files, you need to make sure that you upload them as well along with your mychart.html.

pachevalier commented 10 years ago

Thanks