Ricklefs_colors: Biome colors from _Ricklefs (2008)_

Ricklefs_colorsR Documentation

Biome colors from Ricklefs (2008)

Description

Colors used for biome polygons in Figure 5.5 from Ricklefs, R. E. (2008), The economy of nature. W. H. Freeman and Company. (Chapter 5, Biological Communities, The biome concept).

Usage

Ricklefs_colors

Format

Named character vector

Examples

library(plotbiomes)
library(ggplot2)
ggplot() +
 geom_polygon(data = Whittaker_biomes,
              aes(x      = temp_c,
                  y      = precp_cm,
                  fill   = biome),
              colour = "gray98", # colour of polygon border
              size   = 0.5) +    # thickness of polygon border
 # fill the polygons with predefined colors
 scale_fill_manual(name   = "Whittaker biomes",
                   breaks = names(Ricklefs_colors),
                   labels = names(Ricklefs_colors),
                   values = Ricklefs_colors)

# Run example in console with: example(Ricklefs_colors)

valentinitnelav/plotbiomes documentation built on Oct. 22, 2022, 6:22 a.m.