Learn R Programming

rms (version 6.0-0)

plot.PostF: plot.PostF

Description

Plot Posterior Density of PostF

Usage

# S3 method for 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

Details

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.