surfacePlot(data, parameters,
type = c("contour", "image", "persp"),
what = c("density", "uncertainty"),
transformation = c("none", "log", "sqrt"),
grid = 50, nlevels = 20, 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.20.C. Fraley and A. E. Raftery (2006, revised 2010). MCLUST Version 3 for R: Normal Mixture Modeling and Model-Based Clustering, Technical Report no. 504, Department of Statistics, University of Washington.
mclust2DplotfaithfulModel <- 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