Bidensplot: Bivariate Density Plot

Description Usage Arguments Value Examples

Description

Generates eiether a perspective or a contour plot of a bivariate density.

Usage

1
2
BiDensPlot(func, xpts = c(-2, 2), ypts = c(-2, 2), npts = 50,
           type = c("persp", "contour"), ...)

Arguments

func

function, the name of a bivariate density function.

xpts

vector, interval of x.

ypts

vector, interval of y.

npts

integer, number of subdivision points between x and y over the specified range xpts to ypts.

type

character, the plot type, either a perspective or a contour plot.

...

ellipsis, arguments are passed to the call of func.

Value

Returns invisibly a list of (x, y, z) triplet.

Examples

1
BiDensPlot(func = dmnorm, mu = c(0, 0), Sigma = equicorr(2, -0.7)) 

Example output

Loading required package: gsl
Loading required package: Matrix
Loading required package: mvtnorm
Loading required package: numDeriv
Loading required package: timeSeries
Loading required package: timeDate

Attaching package: 'QRM'

The following object is masked from 'package:base':

    lbeta

QRM documentation built on April 14, 2020, 6:49 p.m.