View source: R/leaflet_raster.R
Plot a raster image as a leaflet map
1 2 | leaflet_raster(raster, project, diff = TRUE, cuts = c(100, 10000),
base_rail = marta_sf)
|
raster |
The raster object, projected in WGS84 |
project |
A sf object with the project definition |
diff |
If TRUE (default), use a diverging color scheme. |
cuts |
The breaks to use (negative and positive) in showing the colors. Must be a vector of two increasing numbers. |
base_rail |
An sf table with existing rail or fixed-guideway projects to show in the background. Defaults to included MARTA lines |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.