| heatboxplot {LSD} | R Documentation | 
Heatboxplot: a colored boxplot
Description
A boxplot with an additional color stripe based on a kernel density estimate.
Usage
heatboxplot(
  x,
  horizontal = FALSE,
  add = FALSE,
  colpal = "standard",
  rev = FALSE,
  simulate = FALSE,
  daltonize = FALSE,
  cvd = "p",
  alpha = NULL,
  colpals = NULL,
  nrcol = 75,
  lwd = 1.75,
  axes = TRUE,
  labels = NULL,
  xlim = NULL,
  ylim = NULL,
  xlab = NULL,
  ylab = "",
  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 | logical: if  | 
| add | logical: if  | 
| 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). | 
| colpals | a character vector containing names of  | 
| nrcol | a non-negative integer specifying the number of colors to be used (defaults to 100, if not specified). | 
| lwd | linewidth of the box and whiskers. | 
| axes | logical: if  | 
| labels | a character vector of labels. | 
| xlim | x limits, standard graphics parameter. | 
| ylim | y limits, standard graphics parameter. | 
| xlab | x label, standard graphics parameter. | 
| ylab | y label, standard graphics parameter. | 
| main | title(s) of the plot, standard graphics parameter. | 
| nolab | logical: if  | 
| outline | logical: if  | 
| boxonly | logical: if  | 
| adjust | a numeric value giving the scaling factor for the used bandwidth (defaults to 1). | 
| quant.from | a numeric value (between 0 and 1) giving the quantile from which the density lane should be plotted. | 
| quant.to | a numeric value (between 0 and 1) giving the quantile to which the density lane should be plotted. | 
| range | a numeric value to determine how far the plot whiskers extend out from the box. | 
| border | an R build-in color for the box and whiskers. | 
| plot.boxplot | logical: if  | 
| add.quartiles | if  | 
| add.box | logical: if  | 
| n.density | an integer specifying the number of equally spaced points at which the density is to be estimated. | 
| cexbox | a numerical value giving the amount by which the boxes should be magnified relative to the default. | 
| ... | additional parameters to be passed to points and plot. | 
Author(s)
Bjoern Schwalb
See Also
comparisonplot, demotour, disco, colorpalette
Examples
f = c(rnorm(200),rnorm(200)+4)
h = rf(500,15,15)*10
g = rnorm(300)+1
heatboxplot(h)
heatboxplot(list(f=f,g=g),colpals=c("rdpu","greens"),labels=c("bimodal","unimodal"))