surfacePlot(data, mu, pro, ..., type = c("contour", "image", "persp"),
what = c("density", "uncertainty", "skip"),
transformation = c("none", "log", "sqrt"),
grid = 50, nlevels = 20, scale = FALSE, identify = FALSE,
verbose = FALSE, xlim, ylim, swapAxes = FALSE)
scale
, shape
and orientation
components giving an alternative form for the covariance structure
of the mixture model.do.call
(see example
below), it is usually not necessary to know the precise form for
this argument. This argument usually take onc("contour","image","persp")
indicating the
plot type. For more than one selection, users will be asked to
choose from a menu.c("density","uncertainty","skip")
indicating
what to plot. For more than one selection, users will be asked to
choose from a menu. The "skip"
produces and empty plot, which
may be useful if multiple plotc("none","log","sqrt")
indicating a
transformation to be applied to the surface values before
plotting. For more than one selection, users will be asked to choose
from a menu.grid x grid
points to produce the surface plot.
Default: 50
.20
.scale=F
mclust2Dplot
,
do.call
n <- 250 ## create artificial data
set.seed(0)
x <- rbind(matrix(rnorm(n*2), n, 2) %*% diag(c(1,9)),
matrix(rnorm(n*2), n, 2) %*% diag(c(1,9))[,2:1])
xclass <- c(rep(1,n),rep(2,n))
xEMclust <- summary(EMclust(x),x)
surfacePlot(x, mu = xEMclust$mu, sigma = xEMclust$sigma, pro=xEMclust$pro,
type = "contour", what = "density", transformation = "none")
do.call("surfacePlot", c(list(data = x), xEMclust))
Run the code above in your browser using DataLab