rscd_mapplot | R Documentation |
Create a map of the provided variable on the RESOURCECODE field grid
rscd_mapplot(
z,
name = "Depth (m)",
zlim = NULL,
palette = "YlOrRd",
direction = 1,
transform = "identity"
)
z |
the data ro plot: a vector of the same size as the grid (328,030 rows). |
name |
name of the variable plored, to be included in the legend. |
zlim |
limits of the scale. See |
palette |
If a string, will use that named palette.
See |
direction |
Sets the order of colours in the scale.
See |
transform |
Transformation to apply to the color scale.
See |
a ggplot2 object
# Ensure that data package is available before running the example.
# If it is not, see the `resourcecode` package vignette for details
# on installing the required data package.
if (requireNamespace("resourcecodedata", quietly = TRUE)) {
rscd_mapplot(resourcecodedata::rscd_field$depth)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.