Learn R Programming

resourcecode (version 0.5.3)

rscd_mapplot: Create a map of the provided variable on the RESOURCECODE field grid

Description

Create a map of the provided variable on the RESOURCECODE field grid

Usage

rscd_mapplot(
  z,
  name = "Depth (m)",
  zlim = NULL,
  palette = "YlOrRd",
  direction = 1,
  transform = "identity"
)

Value

a ggplot2 object

Arguments

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 continuous_scale for details.

palette

If a string, will use that named palette. See scale_colour_brewer for other options.

direction

Sets the order of colours in the scale. See scale_colour_brewer for details.

transform

Transformation to apply to the color scale. See continuous_scale for details.

Examples

Run this code
if (FALSE) { # identical(tolower(Sys.getenv("NOT_CRAN")), "true")
rscd_mapplot(resourcecodedata::rscd_field$depth)
}

Run the code above in your browser using DataLab