| heatbarplot {LSD} | R Documentation |
Depict a histogram object as a barplot in a color encoded fashion based on a kernel density estimate.
heatbarplot(x, colpal = "heat", simulate = FALSE, daltonize = FALSE, cvd = "p", alpha = NULL, rev = FALSE, horizontal = FALSE, nrcol = 100, ...)
x |
a histogram object. |
colpal |
a character vector containing R built-in color names or a name of a |
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). |
rev |
logical: if |
horizontal |
logical: if |
nrcol |
a non-negative integer specifying the number of colors to be used (defaults to 100, if not specified). |
... |
additional parameters to be passed to points and plot. |
Bjoern Schwalb
comparisonplot, demotour, disco, colorpalette
points = 10^4 x = c(rnorm(points/2),rnorm(points/2)+4) x = sign(x)*abs(x)^1.3 xhist = hist(x,plot = FALSE) heatbarplot(xhist)