assigns colors to continuous or categorical values for plotting
Usage
tectonicr.colors(
x,
n = 10,
pal = NULL,
categorical = FALSE,
na.value = "grey",
...
)
Value
named color vector
Arguments
x
values for color assignment
n
integer. number of colors for continuous colors (i.e.
`categorical = FALSE``).
pal
either a named vector specifying the colors for categorical
values, or a color function. If NULL, default colors are
RColorBrewer::brewer.pal()
(categorical = TRUE) and viridis::viridis() (categorical = FALSE).