plotSurface: A function that produces a 3D plot.

Description Usage Arguments Examples

View source: R/mcmc_funcs.R

Description

This function produces a 3D plot. x,y are the independent variables, and the z-axis is the dependent.

Usage

1
2
plotSurface(lowerFirst, upperFirst, lowerSecond, upperSecond,
  numGridPointsOnEachAxis, f, contour = F, ...)

Arguments

lowerFirst

lower bound of x axis

upperFirst

upper bound of x axis

lowerSecond

lower bound of y axis

upperSecond

upper bound of y axis

numGridPointsOnEachAxis

how many grid points do you want on each axis

f

the function that takes two scalar arguments (x and y) and produces one scalar argument (z)

contour

do you want a contour plot? (True or False)

...

extra arguments to be passed to graphics::contour() or graphics::persp() (depending on what contour arg was set to)

Examples

1
plotSurface(-50, 50, 0.0001, 50, 20, eval_log_unnormalized_posterior, F, theta=-120, zlab = "log unnorm dens", xlab = "mu", ylab = "ss")

tbrown122387/mmcmc documentation built on Dec. 31, 2019, 12:34 p.m.