View source: R/tmap_CreateLayer_ValuesByGridCell.R
tmap_CreateLayer_ValuesByGridCell | R Documentation |
Function to create a tmap-style map layer with values by grid cell.
tmap_CreateLayer_ValuesByGridCell( dfr, vals_col, basemap = NULL, title = "values", alpha = 0.9, plotMap = FALSE )
dfr |
- |
vals_col |
- column name of values to plot |
basemap |
- tmap-style basemap to use (default is NULL, which uses the basemap for the CGOA in lat/lon) |
title |
- map title (default is "values") |
alpha |
- transparency to apply to values layer (default is 0.9) |
plotMap |
- flag to combine layer with basemap and plot (default is FALSE) |
Requires package tmap. If all values are 0, then NULL is
returned for the map layer object. Note that the color scale used for the values
is determined by the aes.palette
argument to createBasemap
when the basemap is created.
a tmap-style layer object of the values by grid cell.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.