bvn.plot: Make plots of bivariate normal distributions

bvn.plotR Documentation

Make plots of bivariate normal distributions

Description

The function uses functions from lattice and mvtnorm to make wireframe plots of bivariate normal distributions. Remember that the covariance must be less than the product of the marginal standard deviations (square roots of the diagonal elements).

Usage

bvn.plot(mu = c(0, 0), cv = 0, vr = c(1, 1), res = 0.3, xlab = expression(y[1]), 
ylab = expression(y[2]), zlab = expression(paste("f(", y[1], ",", y[2], ")")), ...)

Arguments

mu

A vector containing the joint distribution means.

cv

A number, indicating the covariance of the two variables.

vr

The diagonal elements in the variance covariance matrix.

res

Plot resolution. Smaller values create a more detailed wireframe plot.

xlab

X-axis label.

ylab

Y-axis label.

zlab

Z-axis label.

...

Additional arguments from wireframe.

Author(s)

Ken Aho


asbio documentation built on Aug. 20, 2023, 9:07 a.m.