kde.plot.simple | R Documentation |
plot a single vector as kernel density estimation (kde.plot.simple), plot columns of a matrix as kernel density estimation (kde.plot.matrix)
kde.plot.simple(x, initial = FALSE, col = c("#00640044"), ...)
kde.plot.matrix(X, col = makeTrans(rainbow(ncol(X))), legend = TRUE, ...)
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 |
Nothing particularly interesting
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.