powered by
Generates eiether a perspective or a contour plot of a bivariate density.
BiDensPlot(func, xpts = c(-2, 2), ypts = c(-2, 2), npts = 50, type = c("persp", "contour"), ...)
function, the name of a bivariate density function.
function
vector, interval of x.
vector
vector, interval of y.
integer, number of subdivision points between x and y over the specified range xpts to ypts.
integer
character, the plot type, either a perspective or a contour plot.
character
ellipsis, arguments are passed to the call of func.
ellipsis
func
Returns invisibly a list of (x, y, z) triplet.
(x, y, z)
# NOT RUN { BiDensPlot(func = dmnorm, mu = c(0, 0), Sigma = equicorr(2, -0.7)) # }
Run the code above in your browser using DataLab