Learn R Programming

BSL (version 0.1.1)

plot: Plotting BSL and BSLasso Results

Description

There are several functions included in this package to help visualise the results of the MCMC run and of the tuning process.

The function combinePlotsBSL can be used to plot multiple BSL and BSLasso densities together, optionally with the true values for the parameters.

The function plot.BSL can be used to plot BSL and BSLasso densities, optionally with the true values for the parameters.

The function plot.penbsl can be used to plot the results from tuning to select the optimal penalty for BSLasso.

Usage

combinePlotsBSL(..., true_value = NULL, thin = 1)

# S3 method for bsl plot(x, true_value = NULL, thin = 1, ...)

# S3 method for penbsl plot(x, logscale = TRUE, ...)

Arguments

...

The first inputs to the combinePlotsBSL function should be two or more results of type bsl, separated by commas.

true_value

A set of values to be included on the plots as a reference line. The default is NULL.

thin

The gap between samples to be taken when thinning the MCMC draws. The default is 1 (no thinning).

x

An object to be plotted.

logscale

An indicator for whether the penalty values should be shown on the log scale in plots of penbsl objects. The default is TRUE.