densityplot {eiPack} | R Documentation |
Density plots for population level parameters
Description
Generates a density plot for population level quantities of
interest output by lambda.MD
, lambda.reg
,
and lambda.reg.bayes
. For the Bayesian methods,
densityplot
plots the kernel density for the draws. For the
frequentist lambda.reg
method, densityplot
plots
the canonical Normal density conditional on the mean and standard error
output by lambda.reg
.
Usage
## S3 method for class 'lambdaMD'
densityplot(x, by = "column", col, xlim, ylim,
main = "", sub = NULL, xlab, ylab,
lty = par("lty"), lwd = par("lwd"), ...)
## S3 method for class 'lambdaRegBayes'
densityplot(x, by = "column", col, xlim, ylim,
main = "", sub = NULL, xlab, ylab,
lty = par("lty"), lwd = par("lwd"), ...)
## S3 method for class 'lambdaReg'
densityplot(x, by = "column", col, xlim, ylim,
main = "", sub = NULL, xlab, ylab,
lty = par("lty"), lwd = par("lwd"), ...)
Arguments
x |
output from |
by |
character string (defaulting to |
col |
an optional vector of colors, with length corresponding to
the number of marginals selected in |
xlim , ylim |
optional limits for the x-axis and y-axis, passed to
|
main , sub |
optional title and subtitle, passed to |
xlab , ylab |
optional labels for the x- and y-axes, passed to
|
lty , lwd |
optional arguments for line type and line width, passed
to |
... |
additional arguments passed to |
Value
A plot with density lines for the selected margin (row or column).
Author(s)
Olivia Lau <olivia.lau@post.harvard.edu>
See Also
plot
, segments
, par