plt.surface: Create contour plot of a density

Description Usage Arguments Value

View source: R/plots.R

Description

Create contour plot of a density

Usage

1
2
3
4
5
6
7
8
9
plt.surface(
  fun = donut,
  grid_size = 3,
  N_grid = 100,
  color_low = "gray95",
  color_high = "gray50",
  title = NULL,
  font_size = 10
)

Arguments

fun

function that evaluates (unnormalized) log density

N_grid

number of grid points

color_low

color scale lowest value color

color_high

color scale highest value color

title

plot title

font_size

title font size

grid

grid bouds

Value

a ggplot object


jtimonen/mc2 documentation built on Jan. 20, 2020, 10:37 a.m.