plotPoster | R Documentation |
Plots posterior densities, possibly including a posterior null point mass.
plotPoster(id, poster, miny = 10^(-4), xlabel = "", ylabel = "", plotlabels = NULL, cols = NULL, ltys = NULL,lwds =NULL, xran = NULL, xscatter = NULL, legendxy = NULL, legendbox = "n", include0 = TRUE)
id |
Integer. Index of feature for which the posterior density is desired |
poster |
A list of lists where each sublist contains posteriors of (possibly) multiple parameters (or linear combinations) from the same data. A posterior is represented as a matrix with two columns denoting support and posterior density. |
miny |
Numeric. Minimum value of density (in the tails) |
xlabel |
Character. Label for the x-axis. |
ylabel |
Character. Label for the y-axis. |
plotlabels |
Character vector. Label(s) for the graphs. |
cols |
Numerical or character vector. Colours of the graphs. |
ltys |
Numerical or character vector. Line types for the graphs. |
lwds |
Numerical vector. Line widths for the graphs. |
xran |
Numerical 2-component vector. Range for the x-values. |
xscatter |
Numeric. Scatter for the null point masses. |
legendxy |
Numerical 2-component vector. Determines (x,y)-location of the legend. |
legendbox |
Character. If |
include0 |
Boolean. |
About posteriorlist
: this usually results from NonParaUpdatePosterior
, MixtureUpdatePosterior
,
BFUpdatePosterior
or SpikeSlabUpdatePosterior
. About xscatter
: when multiple densities are displayed
in one figure, the null point masses overlap. Hence, a small scatter is added to avoid the overlap.
Plot.
Mark A. van de Wiel
Van de Wiel MA, Leday GGR, Pardo L, Rue H, Van der Vaart AW, Van Wieringen WN (2012). Bayesian analysis of RNA sequencing data by estimating multiple shrinkage priors. Biostatistics.
SummaryTable
for a summary table of all results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.