Usage
## univariate
## S3 method for class 'kda.kde':
plot(x, y, y.group, prior.prob=NULL, xlim, ylim,
xlab="x", ylab="Weighted density function", drawpoints=TRUE,
lty, lcol, col, ptcol, ...)## bivariate
## S3 method for class 'kda.kde':
plot(x, y, y.group, prior.prob=NULL, cont=c(25,50,75),
abs.cont, xlim, ylim, xlab, ylab, drawpoints=FALSE,
drawlabels=TRUE, cex=1, pch, lty, col, lcol, ptcol, ...)
## trivariate
## S3 method for class 'kda.kde':
plot(x, y, y.group, prior.prob=NULL, cont=c(25,50), colors,
alphavec, xlab, ylab, zlab, drawpoints=FALSE, size=3,
ptcol="blue", ...)
Arguments
x
an object of class kda.kde (output from
kda.kde) y
matrix of test data points
y.group
vector of group labels for test data points
prior.prob
vector of prior probabilities
cont
vector of percentiles of density estimate heights for contour
level curves
abs.cont
vector of absolute density estimate heights for contour
level curves - only one of cont or abs.cont needs to
be specified
cex,pch,lty,xlim,ylim,xlab,ylab,zlab
usual graphics parameters
drawpoints
if TRUE then draw data points
drawlabels
if TRUE then draw contour labels (2-d plot)
col
vector of colours for partition classes
ptcol
vector of colours for data points of each group
lcol
vector of colours for contour lines of density estimates
colors
vector of colours for contours of density estimates (3-d plot)
alphavec
vector of transparency values - one for each contour
(3-d plot)
size
size of plotting symbol (3-d plot)
...
other graphics parameters