3D plot of a two-dimensional MCMC target, or any function
3D plot of a two-dimensional MCMC target, or any function
Utility function for the package EntropyMCMC, to visualize a 2-dimensional target of a MCMC algorithm, mostly for testing purpose. This uses the function persp from package graphics.
plottarget3d(zft, l, r, ms, theta, phi,...)
Arguments
zft: a function, typically a 2-dimensional target of a MCMC.
l, r, ms: mesh boundaries and size.
theta, phi: angles defining the viewing direction. theta
gives the azimuthal direction and phi the colatitude.