surfacePlot(data, parameters,
type = c("contour", "image", "persp"),
what = c("density", "uncertainty"),
transformation = c("none", "log", "sqrt"),
grid = 50, nlevels = 11, levels = NULL,
scale = FALSE, xlim = NULL, ylim = NULL,
identify = FALSE, verbose = FALSE, swapAxes = FALSE, ...)
"contour"
(default), "image"
, "persp"
indicating the plot type."density"
(default), "uncertainty"
indicating what to plot."none"
(default), "log"
, "sqrt"
indicating a transformation
to be applied before plotting.grid x grid
points to produce the surface plot.
Default: 50
.11
.C. Fraley, A. E. Raftery, T. B. Murphy and L. Scrucca (2012). mclust Version 4 for R: Normal Mixture Modeling for Model-Based Clustering, Classification, and Density Estimation. Technical Report No. 597, Department of Statistics, University of Washington.
mclust2Dplot
faithfulModel <- mclustModel(faithful,mclustBIC(faithful))
surfacePlot(faithful, parameters = faithfulModel$parameters,
type = "contour", what = "density", transformation = "none",
drawlabels = FALSE)
Run the code above in your browser using DataLab