bec_colours | R Documentation |
Standard colours used to represent Biogeoclimatic Zone colours to be used in plotting.
bec_colours()
bec_colors()
named vector of hexadecimal colour codes. Names are standard abbreviations of Zone names.
## Not run:
if (require(sf) && require(ggplot2)) {
bec <- bec()
ggplot() +
geom_sf(data = bec[bec$ZONE %in% c("BG", "PP"),],
aes(fill = ZONE, col = ZONE)) +
scale_fill_manual(values = bec_colors()) +
scale_colour_manual(values = bec_colours())
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.