autoplot.bt_post: An autoplot (ggplot2) method for objects of class "bt_post"....

Description Usage Arguments

View source: R/BTprocessR_S3.R

Description

An autoplot (ggplot2) method for objects of class "bt_post". Plots a histogram of all, or a specified number of, parameters from the posterior.

Usage

1
2
3
## S3 method for class 'bt_post'
autoplot(posterior, parameters = NULL, col = NULL,
  pal = "D")

Arguments

posterior

An object of class "bt_post", returned from loadPosterior.

col

The colour of the bars in the histogram, or a vector of colours (for multiple plots). If absent the viridis colour scale is used.

pal

If using the viridis pallettes (i.e. no user-specified colours) then this determines the viridis palletter used. See scale_color_viridis. Four options are available: "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"), and "viridis" (or "D", the default option).

parameter

The parameter, or vector of parameter names, to plot. Must match column names of posterior. If NULL then all parameters will be plotted.


hferg/bayestraitr documentation built on May 28, 2019, 8:55 p.m.