PlotMixtureBivariate: PlotMixtureBivariate

Description Usage Arguments Value Author(s) References Examples

View source: R/plot-methods.R

Description

Visualize data, centroids and response confidence intervals for a given Gaussian mixture model in two-dimensional (bivariate) case. Optionally, color the samples according to annotations labels.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
PlotMixtureBivariate(
  x,
  means,
  sds,
  ws,
  labels = NULL,
  confidence = 0.95,
  main = "",
  ...
)

Arguments

x

data matrix (samples x features)

means

mode centroids (modes x features)

sds

mode standard deviations, assuming diagonal covariance matrices (modes x features, each row giving the sqrt of covariance diagonal for the corresponding mode)

ws

weight for each mode

labels

Optional: sample class labels to be indicated in colors.

confidence

Confidence interval for the responses based on the covariances of each response. If NULL, no plotting.

main

title text

...

Further arguments for plot function.

Value

Used for its side-effects.

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation('netresponse') for citation details.

Examples

1
#plotMixture(dat, means, sds, ws)

netresponse documentation built on Nov. 8, 2020, 5:04 p.m.