Learn R Programming

spam (version 0.40-0)

grid_trace2: Two trace plots and a scatter plot.

Description

For two (MCMC) chains of the same length trace plots and a scatter plot are drawn.

Usage

grid_trace2(chain1, chain2 = NULL,
                   chain1_lab = '',
                   chain2_lab = '',
                   chain1_yaxis_at = NULL,
                   chain2_yaxis_at = NULL,
                   log = FALSE,
                   draw = TRUE)

Arguments

chain1
A numeric vector or alternatively a matrix with two columns.
chain2
A numeric vector of same length as chain1. (Only needed if chain1 is specified as vector).
chain1_lab
Label of chain 1 (character of length 1).
chain2_lab
Label of chain 2 (character of length 1).
chain1_yaxis_at
Points at which tick-marks are drawn for chain 1.
chain2_yaxis_at
Points at which tick-marks are drawn for chain 2.
log
Logical, should the date be log transformed?
draw
Logical, should the returned grob object be drawn?

Value

  • A grob object.

See Also

grid_zoom

Examples

Run this code
grid_trace2(runif(500),runif(500),
            chain1_yaxis_at = seq(.2, 1, by = .2),
            chain1_lab = 'chain1', chain2_lab = 'chain2')

Run the code above in your browser using DataLab