Learn R Programming

canadianmaps (version 2.0.0)

scale_fill_map: Color Palettes Fill

Description

Create a custom number of colors to use for graphing or mapping based on preset color palettes.

Usage

scale_fill_map(palette, num, na.value = "grey90", rev = FALSE)

Value

a ggplot color palette

Arguments

palette

color palette name

num

number of colors to create

na.value

a color value for NA, defaults to light gray

rev

condition to reverse the order of the colors