Learn R Programming

ebirdst (version 3.2022.3)

ebirdst_palettes: eBird Status and Trends color palettes for mapping

Description

Generate the color palettes used for the eBird Status and Trends relative abundance and trends maps.

Usage

ebirdst_palettes(
  n,
  type = c("weekly", "breeding", "nonbreeding", "migration", "prebreeding_migration",
    "postbreeding_migration", "year_round", "trends")
)

Value

A character vector of hex color codes.

Arguments

n

integer; the number of colors to be in the palette.

type

character; the type of color palette: "weekly" for the weekly relative abundance, "trends" for trends color palett, and a season name for the seasonal relative abundance. Note that for trends a diverging palette is returned, while all other palettes are sequential.

Examples

Run this code
# breeding season color palette
ebirdst_palettes(10, type = "breeding")

Run the code above in your browser using DataLab