bivPlot: Marginal and joint plots for bivariate data.

Description Usage Arguments Value Examples

Description

Scatterplot and marginal histograms for bivariate data. If theta is provided, the joint and marginal densities will be superimposed.

Usage

1
bivPlot(y, modelType=NULL, theta=NULL)

Arguments

y

Data matrix or vector.

modelType

(optional) model specification. Already implemented modelTypes are 'N' (Normal), 'SN' (skew-normal), 'T' (Student T), and 'ST' (skew-t).

theta

(optional) list of parameters. The list should contain elements named 'xi' (a numeric vector) or 'B' (a kxp matrix), 'G' (a pxp matrix), 'psi' (a numeric vetor, optional) and 'nu' (a scalar, optional). See Details.

Value

The function draws a plot for bivariate data.

Examples

1
2
3
4
5
6
7
8
9
# Define the parameters' list
pars = list(xi=c(5,2), G=diag(2), psi=rep(1,2), nu=4)
# Generate data
values = rmvSE(200, 2, NULL, 'ST', theta=pars)
y = values$y
# Draw the data points.
bivPlot(y)
# Draw the data points and the density function.
bivPlot(y, modelType='ST', theta=pars)

mvst documentation built on May 2, 2019, 1:46 p.m.