ks (version 1.10.7)

plot.kcde: Plot for kernel cumulative distribution estimate

Description

Plot for kernel cumulative distribution estimate 1- to 3-dimensional data.

Usage

# S3 method for kcde
plot(x, ...)

Arguments

x

an object of class kcde (output from kcde)

...

other graphics parameters used in plot.kde

Value

Plots for 1-d and 2-d are sent to graphics window. Plot for 3-d is sent to RGL window (not yet implemented).

Details

For kcde objects, the function headers for the different dimensional data are

  ## univariate
  plot(Fhat, xlab, ylab="Distribution function", add=FALSE, drawpoints=FALSE, 
       col.pt="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, add=FALSE, drawpoints=FALSE, drawlabels=TRUE, theta=-30, phi=40, d=4, col.pt="blue", col, col.fun, lwd=1, border=NA, thin=1, ...)

See Also

plot.kde

Examples

Run this code
# NOT RUN {
library(MASS)
data(iris)
Fhat <- kcde(x=iris[,1])
plot(Fhat, xlab="Sepal.Length")
Fhat <- kcde(x=iris[,1:2])
plot(Fhat, thin=3)
# }

Run the code above in your browser using DataLab