plot.PostF: Plot Posterior Density of 'PostF'

Description Usage Arguments Value Author(s)

View source: R/stanMisc.r

Description

Computes highest posterior density and posterior mean and median as vertical lines, and plots these on the density function. You can transform the posterior draws while plotting.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'PostF'
plot(
  x,
  ...,
  cint = 0.95,
  label = NULL,
  type = c("linetype", "facet"),
  ltitle = ""
)

Arguments

x

result of running a function created by PostF

...

other results created by such functions

cint

interval probability

label

x-axis label if not the expression originally evaluated. When more than one result is plotted, label is a vector of character strings, one for each result.

type

when plotting more than one result specifies whether to make one plot distinguishing results by line type, or whether to make separate panels

ltitle

used of type='linetype' to specify name of legend for the line types

Value

ggplot2 object

Author(s)

Frank Harrell


rmsb documentation built on Feb. 28, 2021, 1:06 a.m.