BiDensPlot {QRMlib}R Documentation

Bivariate Density Plot

Description

makes perspective or contour plot of a bivariate density

Usage

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

Arguments

func a function that evaluates on a n by 2 matrix to give n values of the bivariate density
xpts limits of x range
ypts limits of y range
npts the number of subdivision points between x and y over the speicified range xpts to ypts
type "persp" or "contour" plot
... further parameters of density function

Side Effects

produces a contour or perspective plot

See Also

dmnorm, dmt

Examples

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

[Package QRMlib version 1.4.4 Index]