heatbarplot: Color a barplot.

Description Usage Arguments Author(s) See Also Examples

View source: R/LSD.comparisonplot.r

Description

Depict a histogram object as a barplot in a color encoded fashion based on a kernel density estimate.

Usage

1
2
3
heatbarplot(x, colpal = "heat", simulate = FALSE, daltonize = FALSE,
  cvd = "p", alpha = NULL, rev = FALSE, horizontal = FALSE,
  nrcol = 100, ...)

Arguments

x

a histogram object.

colpal

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).

simulate

logical: if TRUE (FALSE by default), a converted colorpalette is used to simulate dichromat vision according to http://www.daltonize.org (see daltonize).

daltonize

logical: if TRUE (FALSE by default), a converted colorpalette is used to enhance dichromat vision according to http://www.daltonize.org (see daltonize).

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 TRUE (FALSE by default), a reversed colorpalette is used.

horizontal

logical: if TRUE (FALSE by default), rotation of 90 degrees is applied.

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.

Author(s)

Bjoern Schwalb

See Also

comparisonplot, demotour, disco, colorpalette

Examples

1
2
3
4
5
6
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)

LSD documentation built on May 30, 2017, 6:29 a.m.

Related to heatbarplot in LSD...