Description Usage Arguments Details Value See Also Examples
View source: R/morgenstemning.R
Create a colorblind-safe vector of n
contiguous
colors.
1 2 | morgenstemning(n = 256, mincolor = NULL, maxcolor = NULL,
invert = FALSE, gamma = 1.8, alpha = 1)
|
n |
the number of colors to be in the palette. |
mincolor |
a color with which to replace the lower end of the scale. |
maxcolor |
a color with which to replace the upper end of the scale. |
invert |
logical indicating whether the palette should be inverted. |
gamma |
the exponent to use for each channel when
converting to greyscale, such that |
alpha |
the alpha transparency for the palette. |
The colormap increases linearly in lightness (such as a pure black to white map) but incorporates additional colors that help to emphasise the transitions and hence enhance the perception of the data. It is designed to be printer-friendly both for color printers and black & white printers.
A character vector of color names. This can be used either
to create a user-defined color palette for subsequent
graphics by palette(cv)
, a
col =
specification in graphics functions or in
par
.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.