plottarget3d function

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.

  • ...: additional graphical parameters.

Returns

Returns a 3D plot on a mesh of size (l, r, ms).

Author(s)

Didier Chauveau.

  • Maintainer: Didier Chauveau
  • License: GPL (>= 3)
  • Last published: 2019-03-08

Useful links