plot.kcde {ks} | R Documentation |
Plot for kernel cumulative distribution estimate 1- to 3-dimensional data.
## S3 method for class 'kcde' plot(x, ...)
x |
an object of class |
... |
other graphics parameters used in |
For kcde
objects, the function headers for the different dimensional data are
## univariate plot(Fhat, xlab, ylab="Distribution function", add=FALSE, drawpoints=FALSE, ptcol="blue", jitter=FALSE, ...) ##bivariate plot(Fhat, display="persp", cont=seq(10,90, by=10), abs.cont, xlab, ylab, zlab="Distribution function", cex=1, pch=1, labcex, add=FALSE, drawpoints=FALSE, drawlabels=TRUE, theta=-30, phi=40, d=4, ptcol="blue", col, lwd=1, border=NA, ...)
Plots for 1-d and 2-d are sent to graphics window. Plot for 3-d is sent to RGL window (not yet implemented).
library(MASS) data(iris) Fhat <- kcde(x=iris[,1]) plot(Fhat, xlab="Sepal.Length") Fhat <- kcde(x=iris[,1:2]) plot(Fhat, thin=3)