boxplot.true | R Documentation |
Plots side-by-side boxplots of the columns of the matrix x
.
Each boxplot can have its own reference line (truth
) and
standard error lines se.truth
, if desired. This function was
originally written to display MCMC output, where the reference lines
were true values used to test an MCMC simulation.
BoxplotTrue(x, truth = NULL, vnames = NULL, center = FALSE,
se.truth = NULL, color = "white", truth.color = "black",
ylim = NULL, ...)
x |
The matrix whose columns are to be plotted. |
truth |
(optional) A vector of reference values with length equal to |
vnames |
(optional) character vector giving the column names of |
center |
(optional) logical. If |
se.truth |
(optional) numeric vector of length |
color |
(optional) vector of colors for each boxplot. |
truth.color |
A color (or vector of colors) to use for the segments representing true values. |
ylim |
Limits for the vertical axis. If |
... |
additional arguments to |
called for its side effect
Steven L. Scott
boxplot.matrix
,
boxplot
,
x <- t(matrix(rnorm(5000, 1:5, 1:5), nrow=5))
BoxplotTrue(x, truth=1:5, se.truth=1:5, col=rainbow(5), vnames =
c("EJ", "TK", "JT", "OtherEJ", "TJ") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.