Site icon R-bloggers

Map Symbols and Size Legends for leaflet

[This article was first published on R on Thomas Roh, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
The leaflet package in R has built-in functionality for creating color encoded geometries and annotating with color legends. Support is lacking in the area of providing the ability to encode data with sizes or symbology except for the case of circle markers. Size and symbology are an important part of data visualization on a map. Using the leaflegend package, you can add both to your leaflet maps without adding external css or javascript.

To leave a comment for the author, please follow the link and comment on their blog: R on Thomas Roh.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.