scatterhist: Plot posterior sampling chain and the histogram on the right...

Description Usage Arguments Value Examples

Description

NB: currently works for integer y; need to make it general.

Usage

1
scatterhist(x, y, xlab = "", ylab = "")

Arguments

x

numeric vector; usually iteration ids

y

the values at each x value

xlab

label of x-axis

ylab

label of y-axis

Value

a plot with sampling chain at the bottom left and histogram on the right margin

Examples

1
2
3
x <- 1:1000
y <- sample(1:10,1000,prob = c(1,2,3,4,5,5,4,3,2,1), replace=TRUE)
scatterhist(x,y)

zhenkewu/rewind documentation built on Sept. 9, 2020, 3:40 p.m.