densitylane: Visualize a density in a rectangular fashion

Description Usage Arguments Author(s) See Also

View source: R/LSD.heatboxplot.R

Description

Add a color stripe to an existing plot based on a kernel density estimate.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
densitylane(
  x,
  y,
  pos = 1,
  width = 0.4,
  colpal = "standard",
  rev = FALSE,
  simulate = FALSE,
  daltonize = FALSE,
  cvd = "p",
  alpha = NULL,
  horizontal = horizontal,
  nrcol = 75
)

Arguments

x

density$x values of a density object.

y

density$y values of a density object.

pos

the x co-ordinate of the lane (mid point).

width

a numeric value giving the width of the lane.

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

rev

logical: if TRUE (FALSE by default), a reversed colorpalette is used.

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

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

Author(s)

Bjoern Schwalb

See Also

comparisonplot, demotour, disco, colorpalette


LSD documentation built on July 2, 2020, 4:14 a.m.

Related to densitylane in LSD...