Description Usage Arguments Examples
A function to plot one or more posterior distributions from the logfile of a BayesTraits analysis.
1 2 | plotPosts(logfile, pars, fill = "dodgerblue", cols = 2, thinning = 1,
burnin = 0)
|
logfile |
The name of the trait data file on which BayesTraits was run. |
fill |
The colour for the bars of the histogram. If "count" histogram will be shaded according to count. |
cols |
The number of columns to plot multiple plots into. |
thinning |
Thinning parameter for the posterior - defaults to 1 (all samples). 2 uses every second sample, 3 every third and so on. |
burnin |
The number of generations to remove from the start of the chain as burnin. |
params |
A vector containing the name of the parameter(s) that are to be plotted. Can be subsetted from the output of getParams(). |
1 2 | plotPosterior(cool-data.txt, c("Lh", "Alpha 1"))
plotPosterior(cool-data.txt, params[c(1:2)])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.