Learn R Programming

Boom (version 0.9.15)

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

Steven L. Scott