plot_bvn_surface: A function that plots the surface of a bivariate normal...

Description Usage Arguments Value

View source: R/plot_bvn_surface.R

Description

Makes plotting the bivariate normal distribution easier. Uses mnormt and fields packages.

Usage

1
plot_bvn_surface(meanvec, covmat, type, xlab, ylab, zlab, main)

Arguments

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

Value

A plot of the surface of a bivariate normal with meanvec as the mean vector and covmat as the covariance matrix


jonathantemplin/EPSY905R documentation built on May 19, 2019, 4:06 p.m.