Description Usage Arguments Examples
This function produces a 3D plot. x,y are the independent variables, and the z-axis is the dependent.
1 2 | plotSurface(lowerFirst, upperFirst, lowerSecond, upperSecond,
numGridPointsOnEachAxis, f, contour = F, ...)
|
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) |
1 | plotSurface(-50, 50, 0.0001, 50, 20, eval_log_unnormalized_posterior, F, theta=-120, zlab = "log unnorm dens", xlab = "mu", ylab = "ss")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.