add.path: Add MCMC chain path to a contour plot of a density

Description Usage Arguments Value

View source: R/plots.R

Description

Add MCMC chain path to a contour plot of a density

Usage

1
add.path(p, X, color = "firebrick3", alpha = 1, lines = TRUE)

Arguments

p

a ggplot object created using plot.surface

X

a matrix with two columns

color

line or point color

alpha

line or point alpha

lines

should the samples be connected with lines?

Value

a ggplot object


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