Last data update: 2014.03.03

R: Functions of Contours
conplotR Documentation

Functions of Contours

Description

These functions are called by EmSkew.contours,EmSkew.filter and EmSkew.flow to plot the contours of (skew) mixture density after fitting to the data.

Usage

conplot(x, y, pro, mu, sigma, dof, delta, distr, grid = 300, 
nrand = 6000, levels = seq(5, 95, by = 20), col = "white")
conplot2(x, y, pro, mu, sigma, dof, delta, distr, grid = 300, 
    nrand = 6000, levels = seq(5, 95, by = 20)) 
conplot3(x, y, pro, mu, sigma, dof, delta, modpts,distr, grid =300, 
    nrand = 10000, levels = seq(5, 95, by = 20)) 
mypanel2(x,y,...)
mypanel3(x,y,...)
mypanel4(x,y,...)
panel.density(x, col=1,...)

Arguments

x

A vector of observations on variable x.

y

A vector of observations on variable y.

pro

A vector of mixing proportions in the (skew) mixture model.

mu

A matrix with each column corresponding to the mean or location vector of one mixture component.

sigma

An array of covariance matrices for each component of the mixture distribution.

dof

A vector of degrees of freedom when "distr"ibution is "mvt" or "mst".

delta

A matrix with each column as skew parameter vector of one component when "distr"ibution is "msn" or "mst".

distr

A three letter string indicating component distribution, "mvn"=normal distribution, "mvt"=t-distribution,"msn"=skew normal distribution, "mst"=skew t-ditribution.

modpts

The mode points.

grid

An integer for the number of grid points in one direction.

nrand

A large integer for the number of random numbers being drawn.

levels

A vector of contour percentage levels for the plots. It should be in the range of 0 to 100.

col

The colour of contour lines.

...

other

Details

In most case, users do not call this function directly, instead they call the function emmix.flow.

See Also

EmSkew.flow

Results