Learn R Programming

prada (version 1.48.0)

plotNorm2: Plot fitted bivariate normal distribution.

Description

Plots objects derived from function fitNorm2 in false color represenation.

Usage

plotNorm2(fn, colrange=c("gray82", "blue"), center=TRUE, selection=FALSE, ellipse=FALSE, pch=20, cex=1, col="dens", ...)

Arguments

fn
List. Object derived from function fitNorm2
colrange
Character vector with valid color identifiers (eg name or RGB values) from which a smooth color palette is derived.
center
Logical. Assign center of distribution.
selection
Logical. Mark all points beyond selection.
ellipse
Logical. Plot area and borders of selection as ellipse.
pch
see par
cex
see par
col
see par or special cases dens for coloring according to density and prob for coloring according to probability.
...
further arguments that are passed on to plot.

Value

p, cov, mu, S (density values for each data pair, resulting object from call to cov.rob, midpoint of distribution, covariance matrix).

Details

Produces a scatterplot of paired data showing the densities of the fitted bivariate distribution from function fitNorm2 in false color representation. Additionally a selection of data points can be highlighted either by marking outliers or by showing its area.

See Also

fitNorm2

Examples

Run this code
 sampdat <- readFCS(system.file("extdata",
   "fas-Bcl2-plate323-04-04.A01", package="prada"))
 nfit   <- fitNorm2(exprs(sampdat[,1:2]), scalefac=2)
 plotNorm2(nfit, selection=TRUE, ellipse=TRUE)

Run the code above in your browser using DataLab