Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compare.dynamic.distributions

Compare Dynamic Distributions


Description

Produce a plot showing several stacked dynamic distributions over the same horizontal axis.

Usage

CompareDynamicDistributions(
    list.of.curves,
    timestamps,
    style = c("dynamic", "boxplot"),
    xlab = "Time",
    ylab = "",
    frame.labels = rep("", length(list.of.curves)),
    main = "",
    actuals = NULL,
    col.actuals = "blue",
    pch.actuals = 1,
    cex.actuals = 1,
    vertical.cuts = NULL,
    ...)

Arguments

list.of.curves

A list of matrices, all having the same number of columns. Each matrix represents a distribution of curves, with rows corresponding to individual curves, and columns to time points.

timestamps

A vector of time stamps, with length matching the number of columns in each element of list.of.curves.

style

Should the curves be represented using a dynamic distribution plot, or boxplots. Boxplots are better for small numbers of time points. Dynamic distribution plots are better for large numbers of time points.

xlab

Label for the horizontal axis.

ylab

Label for the (outer) vertical axis.

frame.labels

Labels for the vertical axis of each subplot. The length must match the number of plot.

main

Main title for the plot.

actuals

If non-NULL, actuals should be a numeric vector giving the actual "true" value at each time point.

col.actuals

Color to use for the actuals. See par.

pch.actuals

Plotting character(s) to use for the actuals. See par.

cex.actuals

Scale factor for actuals. See par.

vertical.cuts

If non-NULL then this must be a vector of the same type as timestamps with length matching the number of plots. A vertical line will be drawn at this location for each plot. Entries with the value NA signal that no vertical line should be drawn for that entry.

...

Extra arguments passed to PlotDynamicDistribution or TimeSeriesBoxplot.

Author(s)

Steven L. Scott


Boom

Bayesian Object Oriented Modeling

v0.9.7
LGPL-2.1 | file LICENSE
Authors
Steven L. Scott is the sole author and creator of the BOOM project. Some code in the BOOM libraries has been modified from other open source projects. These include Cephes (obtained from Netlib, written by Stephen L. Moshier), NEWUOA (M.J.D Powell, obtained from Powell's web site), and a modified version of the R math libraries (R core development team). Original copyright notices have been maintained in all source files. In these cases, copyright claimed by Steven L. Scott is limited to modifications made to the original code. Google claims copyright for code written while Steven L. Scott was employed at Google from 2008 - 2018, but BOOM is not an officially supported Google project.
Initial release
2021-02-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.