| comparisonplot {LSD} | R Documentation |
A function to compare two vectors extensively.
comparisonplot(x, y, histbreaks = 30, adjust = 1, colpal = "heat", simulate = FALSE, daltonize = FALSE, cvd = "p", alpha = NULL, rev = FALSE, main = "comparisonplot", cor = FALSE, xlab = NULL, ylab = NULL, xlim = NULL, ylim = NULL, ab = FALSE, add.density = FALSE, col.density = "darkred", pimp = FALSE, ...)
x |
a numeric vector. |
y |
a numeric vector. |
histbreaks |
a non-negative integer specifying the number of breaks of the histograms. |
adjust |
scale the used bandwidth of the density estimate, if |
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 |
main |
title(s) of the plot, standard graphics parameter. |
cor |
if |
xlab |
x label, standard graphics parameter. |
ylab |
y label, standard graphics parameter. |
xlim |
x limits, standard graphics parameter. |
ylim |
y limits, standard graphics parameter. |
ab |
if |
add.density |
if |
col.density |
R built-in color to specify the color of the density line. |
pimp |
if |
... |
additional parameters to be passed to points and plot. |
Bjoern Schwalb
align, demotour, disco, colorpalette
points = 10^4 x = c(rnorm(points/2),rnorm(points/2)+4) y = x + rnorm(points,sd=0.8) x = sign(x)*abs(x)^1.3 comparisonplot(x,y,histbreaks=30,pch=20)