BiDensPlot {QRMlib} | R Documentation |
makes perspective or contour plot of a bivariate density
BiDensPlot(func, xpts=c(-2, 2), ypts=c(-2, 2), npts=50, type="persp", ...)
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 |
produces a contour or perspective plot
BiDensPlot(func=dmnorm,mu=c(0,0),Sigma=equicorr(2,-0.7))