Description Usage Arguments Details Value Author(s) Examples
View source: R/package-support.R
Create a color ramp based on a grouping factor
1 | LMK_colramp(grp, mute = TRUE)
|
grp |
A grouping variable, should be a factor |
mute |
Logical, should color be muted. If true (default), color values will be generated with saturation value of .4, if false, values will have full saturation (1.0) |
Creates color ramp for a given factor and returns a vector of color assignments for each individual using grDevices::rainbow(). Useful for plotting by group.
Returns a vector of color assignments for each individual based on a grouping factor.
Daniel Ehrlich
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.