Description Usage Arguments Value Author(s) See Also Examples
View source: R/displayScatter.R
general plotting function for data sets (matrix of row-elements), optionally associated to labels and a GMM. Labels influence the color and symbols of plotted data points. Gaussian envelopes of the components in the GMM are drawn. NB: data set and GMM arguments cannot be both NULL.
1 2 3 4 |
data |
matrix of row-elements. If NULL, the GMM is plotted alone. |
model |
GMM object. |
labels |
vector of numeric labels. May alternatively be present as a member of model, labels. |
datasizes |
vector of integer magnification factors for data symbols. If length=1, same coefficient applies to all points. |
compcolors |
vector of integer color indexes. These indexes are internally associated to one color among a set of appropriately chosen ones. If length=1, all GMM components are colored the same way. If length=k, each component is associated to its own color index. This k-length vector may contain NA values: associated components will be white-colored. |
complabels |
character vector containing text strings to be printed over Gaussian envelopes. |
compstrokes |
this character vector may be used to specify non default strokes for envelopes. |
space |
this function prints a 2D scatterplot. If data and model have higher dimensionality, this argument specifies the axes to be printed. |
xlim |
bounds for the first variable. If NULL, will be inferred from available data. |
ylim |
bounds for the second variable. If NULL, will be inferred from available data. |
main |
main label for the plotting window. |
xlab |
label for the x-axis. |
ylab |
label for the y-axis. |
smooth |
if TRUE, display the response to a kernel density function, instead of symbols for data elements. |
alphacol |
alpha blending parameter when a component is non-white colored. |
alphanocol |
alpha blending parameter when a component is white colored. |
cex.lab |
magnification factor for all text in the plotting window. |
lwd |
width of the stroke used for data symbols. |
a new plotting window displaying the data set and associated model.
Pierrick Bruneau
plotGmm
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.