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
)
density$x values of a density object.
density$y values of a density object.
the x co-ordinate of the lane (mid point).
a numeric value giving the width of the lane.
a character vector containing R built-in color names or a name of a LSD
colorpalette as a character string (see disco() or disco
) (defaults to "heat", if not specified).
logical: if TRUE
(FALSE
by default), a reversed colorpalette is used.
logical: if TRUE
(FALSE
by default), a converted colorpalette is used to simulate dichromat vision according to http://www.daltonize.org (see daltonize
).
logical: if TRUE
(FALSE
by default), a converted colorpalette is used to enhance dichromat vision according to http://www.daltonize.org (see daltonize
).
character string implying the type of color vision deficiency ("p" for protanope, "d" for deuteranope or "t" for tritanope).
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).
logical: if TRUE
(FALSE
by default), rotation of 90 degrees is applied.
a non-negative integer specifying the number of colors to be used (defaults to 100, if not specified).