Description Usage Arguments See Also Examples
Shows a leaflet map for the native habitat given a species identifier
1 2 3 4 5 | am_map_leaflet(
ras,
title = "",
cols = c("#FEB24C", "#FD8D3C", "#FC4E2A", "#E31A1C", "#B10026")
)
|
ras |
a raster object, for example from the am_raster function |
title |
a string to use as legend title, by default blank |
cols |
a vector with three hex colors to use for a numeric color legend, default: c("#FEB24C", "#FD8D3C", "#FC4E2A", "#E31A1C", "#B10026") |
Other spatial:
am_csc_from_extent(),
am_raster(),
am_species_in_csc(),
am_species_per_csc(),
csquare_from_dd(),
csquare_to_dd(),
rasterize_coords(),
which_cells_in_raster()
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# native habitat for blue trevally
ras <- am_raster(am_search_fuzzy("blue trevally")$key)
am_map_leaflet(ras, title = "Blue trevally (p)")
# where do both blue and white trevally occur?
ras <- am_raster(am_search_fuzzy("trevally AND (white OR blue)")$key,
fun = "count")
am_map_leaflet(ras, title = "Blue and white trevally (n)")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.