kde.plot: kde.plot

kde.plot.simpleR Documentation

kde.plot

Description

plot a single vector as kernel density estimation (kde.plot.simple), plot columns of a matrix as kernel density estimation (kde.plot.matrix)

Usage

kde.plot.simple(x, initial = FALSE, col = c("#00640044"), ...)

kde.plot.matrix(X, col = makeTrans(rainbow(ncol(X))), legend = TRUE, ...)

Arguments

x

values

initial

is the plot initial, i.e. should the plot() function be called

col

color(s)

...

more graphical parameters

X

matrix

legend

add a color legend with colnames of the matrix

Value

Nothing particularly interesting

Examples

kde.plot.simple(c(1:10,rep(5,3)),initial=TRUE,col=c("#00640044"),main="Some plot")
kde.plot.simple(rep(8,2),initial=FALSE,col=c("#64640044"))

dd <- USJudgeRatings
dd[,5] <- 1/dd[,5]
tt <- dd[,1:5]
kde.plot.matrix(tt)

demuellae/muRtools documentation built on Nov. 6, 2024, 9:44 a.m.