Learn R Programming

LSD (version 2.5)

heatboxplot: Heatboxplot

Description

A boxplot with an additional color stripe based on a kernel density estimate

Usage

heatboxplot(x, horizontal = FALSE, add = FALSE, colpal = "standard", colpals = NULL, ncol = 75, lwd = 1.75, axes = TRUE, labels = NULL, alpha = NULL, xlim = NULL, ylim = NULL, xlab = NULL, ylab = "data values", main = "Heatboxplot", nolab = FALSE, outline = TRUE, boxonly = FALSE, adjust = 1, quant.from = 0.25, quant.to = 0.75, range = 1.5, border = "black", plot.boxplot = TRUE, add.quartiles = TRUE, add.box = FALSE, n.density = 1024, cexbox = 0.6, ...)

Arguments

x
data as vector, matrix, list or data.frame
horizontal
should all be plotted horizontal
add
should the boxplot be added to an existing plot
colpal
which colorpalette should be chosen ( see disco() ), only if colpals = NULL
colpals
which colorpalettes should be chosen ( see disco() )
ncol
the number of colors to use
lwd
linewidth to be used
axes
should the axes be plotted
labels
labels of the boxplots
alpha
alpha value for color opacity
xlim
xlimits, standard graphics parameter
ylim
ylimits, standard graphics parameter
xlab
xlab, standard graphics parameter
ylab
ylab, standard graphics parameter
main
title of the plot
nolab
should title and ylab be suppressed
outline
should outliers be plotted
boxonly
should the density only be plotted in the box
adjust
scale the used bandwidth
quant.from
from which quantile should the density lane be plotted
quant.to
to which quantile should the density lane be plotted
range
this determines how far the plot whiskers extend out from the box
border
color of the box and whiskers
plot.boxplot
should boxplot be added
add.quartiles
box of the boxplot, if plot.boxplot = FALSE
add.box
box of the plot
n.density
the number of equally spaced points at which the density is to be estimated
cexbox
cex of the boxes
...
additional parameters to be passed to points and plot

See Also

cplot,densitylane,LSD.demo.tour

Examples

Run this code
demo.heatboxplot()

Run the code above in your browser using DataLab