Description Usage Arguments Value
View source: R/map-estimates.R
Maps trend estimates
1 2 3 4 5 6 7 8 | map_estimates(data, nrow = NULL, station = FALSE, map = cccharts::bc,
climits = NULL, labels = TRUE, clab = ylab_trend,
low = getOption("cccharts.low"), mid = getOption("cccharts.mid"),
high = getOption("cccharts.high"), insig = "white",
ecoprovinces = c("Coast and Mountains", "Georgia Depression",
"Central Interior", "Southern Interior", "Southern Interior Mountains",
"Sub-Boreal Interior", "Boreal Plains", "Taiga Plains",
"Northern Boreal Mountains", "British Columbia"), bounds = c(0, 1, 0, 1))
|
data |
A data frame of the data to plot |
nrow |
A count of the number of rows when facet wrapping. |
station |
A flag indicating whether the plot is for stations or ecoprovinces. |
map |
A SpatialPolygonsDataFrame object. |
climits |
A character vector of length two providing limits of the color scale. |
labels |
A flag indicating wether to plot labels. |
clab |
A function that takes the data and returns a string for the color legend label. |
low |
A string specifying the color for negative values. |
mid |
A string specifying the color for no change. |
high |
A string specifying the color for positive values. |
insig |
A string specifying the color for insignificant estimates. |
ecoprovinces |
A character vector specifying the ecoprovince areas to include in the map. |
bounds |
A numeric vector of four values between 0 and 1 specifying the start and end of the x-axis bounding box and the start and end of the y-axis bounding box. |
A ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.