plotPosts: plotPosts

Description Usage Arguments Examples

View source: R/plotPosts.R

Description

A function to plot one or more posterior distributions from the logfile of a BayesTraits analysis.

Usage

1
2
plotPosts(logfile, pars, fill = "dodgerblue", cols = 2, thinning = 1,
  burnin = 0)

Arguments

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().

Examples

1
2
plotPosterior(cool-data.txt, c("Lh", "Alpha 1"))
plotPosterior(cool-data.txt, params[c(1:2)])

hferg/btrtools documentation built on May 17, 2019, 3:56 p.m.