displayScatter: displayScatter

Description Usage Arguments Value Author(s) See Also Examples

View source: R/displayScatter.R

Description

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.

Usage

1
2
3
4
displayScatter(data = NULL, model = NULL, labels = NULL, datasizes = NULL, 
compcolors = NULL, complabels = NULL, compstrokes = "solid", space = 1:2, 
xlim = NULL, ylim = NULL, main = "", xlab = "", ylab = "", smooth = FALSE, 
alphacol = 0.8, alphanocol = 0.5, cex.lab = 1, lwd = 1)

Arguments

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.

Value

a new plotting window displaying the data set and associated model.

Author(s)

Pierrick Bruneau

See Also

plotGmm

Examples

1

VBmix documentation built on May 30, 2017, 2:34 a.m.

Related to displayScatter in VBmix...