The function combinePlotsBSL
can be used to plot multiple BSL densities together, optionally
with the true values for the parameters.
combinePlotsBSL(objectList, which = 1L, thin = 1, thetaTrue = NULL,
label = NULL, legendPosition = c("auto", "right", "bottom")[1],
legendNcol = NULL, col = NULL, lty = NULL, lwd = NULL,
cex.lab = 1, cex.axis = 1, cex.legend = 0.75,
top = "Approximate Marginal Posteriors", options.color = list(),
options.linetype = list(), options.size = list(),
options.theme = list())
A list of ``bsl'' class objects.
An integer argument indicating which plot function to be used. The default, 1L
, uses
the plain plot
to visualise the result. 2L
uses ggplot2 to draw the plot.
A numeric argument indicating the gap between samples to be taken when thinning the MCMC
draws. The default is 1
, which means no thinning is used.
A set of values to be included on the plots as a reference line. The default is NULL
.
A string vector indicating the labels to be shown in the plot legend. The default is
NULL
, which uses the names from objectList
.
One of the three string arguments, ``auto'', ``right'' or ``bottom'', indicating the legend
position. The default is ``auto'', which automatically choose from ``right'' and ``bottom''. Only used when
which
is 1L
.
A integer argument indicating the number of columns of the legend. The default,
NULL
, put all legends in the same row or column depending on legendPosition
. Only used when
which
is 1L
.
A vector argument containing the plotting color for each density curve. Each element of
the vector will be passed into lines
. Only used when which
is 1L
.
A vector argument containing the line type for each density curve. Each element of
the vector will be passed into lines
. Only used when which
is 1L
.
A vector argument containing the line width for each density curve. Each element of
the vector will be passed into lines
. Only used when which
is 1L
.
The magnification to be used for x and y labels relative to the current setting of cex.
To be passed into plot
. Only used when which
is 1L
.
The magnification to be used for axis annotation relative to the current setting of cex.
To be passed into plot
. Only used when which
is 1L
.
The magnification to be used for legend annotation relative to the current setting of cex.
Only used when which
is 1L
.
A string argument of the combined plot title. Only used when which
is 2L
.
A list of additional arguments to pass into function ggplot2::scale_color_manual
.
Only used when which
is 2L
.
A list of additional arguments to pass into function ggplot2::scale_linetype_manual
.
Only used when which
is 2L
.
A list of additional arguments to pass into function ggplot2::scale_size_manual
.
Only used when which
is 2L
.
A list of additional arguments to pass into the theme
function. Only use
when which
is 2L
.
ma2
for an example