Learn R Programming

rethinking (version 2.13)

plot.map2stan: Trace plot of map2stan chains

Description

Shows trace plots for Stan samples produced by a map2stan fit, annotated by number of effective samples. Automatic paging and adjustable number of columns and rows per page.

Usage

plot( object , pars , col=rethink_palette , alpha=1 , bg=gray(0.7,0.5) , ask=TRUE , window , n_cols=3 , max_rows=5 , ... )

Arguments

object

map2stan model fit

pars

Character vector of parameters to display

col

Vector of colors to use for chains. Recycled.

alpha

alpha transparency of chains

bg

Background fill for warmup samples

ask

Whether to pause for paging. Default is TRUE.

window

Range of samples to display. Default is all samples.

n_cols

Number of columns per page

max_rows

Maximum number of rows per page

...

Additional arguments to pass to plot commands

Value

Details

This is the default trace plot method for map2stan model fits.