Draws a plot of the estimated marginal posterior density for the one-parameter and adds the mean and the credible interval at the desired level
MarginalPlot(
a_chain,
level = 0.95,
GridLength = 1024,
title = "Characteristics of a date",
subtitle = NULL,
caption = "ArchaeoPhases",
x.label = "Calendar year",
y.label = NULL,
y.grid = TRUE,
x.scale = "calendar",
elapsed.origin.position = NULL,
x.min = NULL,
x.max = NULL,
height = 7,
width = 7,
units = "in",
file = NULL,
newWindow = TRUE
)
Numeric vector containing the output of the MCMC algorithm for the parameter.
Probability corresponding to the level of confidence.
Length of the grid used to estimate the density.
Title of the graph.
Subtitle of the graph.
Caption of the graph.
Label of the x-axis.
Label of the y-axis.
Switch for horizontal grid lines.
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.
Minimum x axis value.
Maximum x axis value.
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 chosen, 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
.
# NOT RUN {
data(Events);
MarginalPlot(a_chain = Events$Event.1, level = 0.95)
# }
Run the code above in your browser using DataLab