Description Usage Arguments Value
View source: R/plot_bvn_surface.R
Makes plotting the bivariate normal distribution easier. Uses mnormt
and fields
packages.
1 | plot_bvn_surface(meanvec, covmat, type, xlab, ylab, zlab, main)
|
meanvec |
A matrix with 2 rows andone column that stores the mean of the bivariate normal distribution |
covmat |
A 2 by 2 symmetric covariance matrix |
type |
A character stating the type of plot from the plot.surface function of the fields package ("c" is a contour, "p" is a perspective/drape plot) |
xlab |
A character for the x-axis label |
ylab |
A character for the y-axis label |
zlab |
A character for the z-axis label |
main |
A character for the main label |
A plot of the surface of a bivariate normal with meanvec as the mean vector and covmat as the covariance matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.