View source: R/statworx_palette.R
statworx_palette | R Documentation |
A palette based on STATWORX's CI colors.
statworx_palette(
number = length(basecolors),
reorder = FALSE,
basecolors = c(1, 2, 3, 5, 10),
scheme = "old"
)
number |
a numeric with the number of colors.
The default is the length of |
reorder |
a boolean, if |
basecolors |
a numeric vector with the used color indices of
|
scheme |
a string that indicates if the "new" or the "old" STATWORX CI is used. The default is still "old" to not break existing code. |
Jakob Gepp
number <- 16
plot(data.frame(x = 1:number, y = 1),
col = statworx_palette(number, FALSE),
pch = 16, cex = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.