Learn R Programming

rmsb (version 1.1-1)

plot.PostF: Plot Posterior Density of PostF

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

# S3 method for PostF
plot(
  x,
  ...,
  cint = 0.95,
  label = NULL,
  type = c("linetype", "facet"),
  ltitle = ""
)

Value

ggplot2 object

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

Author

Frank Harrell