ipea_palette {ipeaplot} | R Documentation |
Ipea Color Palette and Scales
Description
This function creates a vector of n equally spaced colors along the selected color map.
Usage
ipea_palette(
palette = c("Blue", "Green", "Orange", "Pink", "Green-Blue", "Green-Blue-White",
"Red-Blue", "Red-Blue-White", "Orange-Blue", "Orange-Blue-White", "Viridis",
"Inferno", "Magma", "Plasma", "Cividis"),
n,
alpha = 1,
begin = 0,
end = 1,
palette_direction = 1
)
Arguments
palette |
A character string indicating the color map option to use. These options are available:'Blue', 'Green', 'Orange', 'Pink', 'Red-Blue' 'Orange-Blue', 'Green-Blue', 'Red-Blue-White', 'Orange-Blue-White', 'Green-Blue-White', 'Viridis', 'Inferno', 'Magma', 'Plasma', 'Cividis'. |
n |
The number of colors ( |
alpha |
The alpha transparency in a number between |
begin |
The (corrected) hue in a number between |
end |
The (corrected) hue in a number between |
palette_direction |
Sets the order of colors in the scale. If |
Details
A 9-color Ipea palette.
Value
ipea_palette
produces a character vector, cv
, containing color hex codes.
This vector can be utilized to establish a custom color scheme for future graphics using palette(cv)
,
or it can be applied directly as a col =
parameter in graphic functions or within par
.
References
'Blue','Green','Orange','Pink','Green-Blue','Green-Blue-White','Red-Blue','Red-Blue-White', 'Orange-Blue','Orange-Blue-White', 'Viridis','Inferno', 'Magma','Plasma' and 'Cividis': https://pmassicotte.github.io/paletteer_gallery/