Skip to content

Instantly share code, notes, and snippets.

View viniciuszendron's full-sized avatar

Vinícius Zendron viniciuszendron

View GitHub Profile
@viniciuszendron
viniciuszendron / README.md
Created November 13, 2020 19:03 — forked from jcheng5/README.md
Using arbitrary Leaflet plugins with Leaflet for R

Using arbitrary Leaflet JS plugins with Leaflet for R

The Leaflet JS mapping library has lots of plugins available. The Leaflet package for R provides direct support for some, but far from all, of these plugins, by providing R functions for invoking the plugins.

If you as an R user find yourself wanting to use a Leaflet plugin that isn't directly supported in the R package, you can use the technique shown here to load the plugin yourself and invoke it using JS code.