| densitylane {LSD} | R Documentation |
Add a color stripe to an existing plot based on a kernel density estimate.
densitylane(x, y, pos = 1, width = 0.4, colpal = "standard", rev = FALSE, simulate = FALSE, daltonize = FALSE, cvd = "p", alpha = NULL, horizontal = horizontal, nrcol = 75)
x |
density$x values of a density object. |
y |
density$y values of a density object. |
pos |
the x co-ordinate of the lane (mid point). |
width |
a numeric value giving the width of the lane. |
colpal |
a character vector containing R built-in color names or a name of a |
rev |
logical: if |
simulate |
logical: if |
daltonize |
logical: if |
cvd |
character string implying the type of color vision deficiency ("p" for protanope, "d" for deuteranope or "t" for tritanope). |
alpha |
alpha value: a two-digit integer between 01 and 99 for color opacity, i.e. appearance of partial or full transparency (usage omitted by default). |
horizontal |
logical: if |
nrcol |
a non-negative integer specifying the number of colors to be used (defaults to 100, if not specified). |
Bjoern Schwalb
comparisonplot, demotour, disco, colorpalette