Draws a plot of the estimated marginal posterior density for a parameter and adds the mean and the credible interval at the desired level
MultiMarginalPlot(
data,
position,
level = 0.95,
GridLength = 1024,
x.scale = rep("calendar", length(position)),
elapsed.origin = NULL,
title = "Characteristics of several dates",
subtitle = NULL,
caption = "ArchaeoPhases",
x.label = "Calendar year",
y.label = NULL,
y.grid = TRUE,
x.min = NULL,
x.max = NULL,
legend.title = "Legend",
height = 7,
width = 7,
units = "in",
file = NULL,
newWindow = TRUE
)
Data frame containing the output of the MCMC algorithm.
Numeric vector containing the position of the column corresponding to the MCMC chains of interest.
Probability corresponding to the level of confidence.
Number of equally spaced points at which the
density is to be estimated (for density()
function).
One of "calendar" for calendar years, "BP" for years before present, or "elapsed" for time elapsed from a specified origin.
Position of the column to use as the origin for elapsed time calculations.
Title of the plot.
Subtitle of the plot.
Caption of the plot.
Label of the x-axis.
Label of the y-axis.
Switch for horizontal grid lines.
Minimum x-axis value.
Maximum x-axis value.
Title for the legend.
Plot height in units
.
Plot width in units
.
String recognized by the ggsave()
function,
one of "in", "cm", "mm".
Name of the file that will be saved if specified,
default = NULL
.
Whether or not the plot is drawn within a new window.
NULL
, called for its side effects
The density is estimated using density()
function with
n = GridLength.
The input MCMC chains should either be in
calendar years or converted to calendar years using x.scale
vector or
elapsed.origin
.
# NOT RUN {
data(Events);
MultiMarginalPlot(Events, position = c(2, 3, 4), level = 0.95)
# }
Run the code above in your browser using DataLab