plotstan: plotstan

Description Usage Arguments

View source: R/plot-res.R

Description

plotstan Create plots for assessing stan diagnostic

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
plotstan(
  typesim,
  stanres,
  dirname = NULL,
  filename = NULL,
  by = 5,
  prof = prof,
  meansd = meansd,
  pdf = F,
  hten = 250,
  wden = 20,
  htrh = 100,
  htbi = 10,
  wdbi = 20,
  typeplot = "none",
  plot = "bias"
)

Arguments

typesim

Which simulation to run. Currently, local1 - local4, ambient.

stanres

Output from runstan

dirname

Folder name where to save plots

filename

Base filename or typesim if NULL

by

Skips for traceplot, biasplot

prof

Profile data, defaults to prof.

meansd

Matrix with columns corresponding to source, type, mean, sd, defaults to meansd.

pdf

Whether to save pdfs of energy, rhat, bias

hten

Height in inches of energy pdf

wden

Width in inches of bias pdf

htrh

Height in inches of rhat pdf

htbi

Height in inches of bias pdf

typeplot

Whether to plot local or ambient

plot

Whether to plot only bias


kralljr/stansa documentation built on Dec. 21, 2021, 7:44 a.m.