Share the Gallery !Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone



How to show a map with the leaflet R library? First initiate the map with the leaflet() function. Then add tiles with addTiles(). With leaflet, we can use the %>% operator to pipe functions. Here you can see how to get the same result using or not this operator. By default, you get the above map. See graph #179.2 to see how to zoom on a zone, and graph #180 to learn how to change background.

Not what you are looking for ? Make a new search !


Leave a Reply

Be the First to Comment!

Notify of