View source: R/BTprocessR_S3.R
An autoplot (ggplot2) method for objects of class "bt_post". Plots a histogram of all, or a specified number of, parameters from the posterior.
1 2 3 |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.