densitylane {LSD} | R Documentation |
Visualize a density in a rectangular fashion
Description
Add a color stripe to an existing plot based on a kernel density estimate.
Usage
densitylane(
x,
y,
pos = 1,
width = 0.4,
colpal = "standard",
rev = FALSE,
simulate = FALSE,
daltonize = FALSE,
cvd = "p",
alpha = NULL,
horizontal = horizontal,
nrcol = 75
)
Arguments
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). |
Author(s)
Bjoern Schwalb
See Also
comparisonplot
, demotour
, disco
, colorpalette