Usage
balanceplot(x, ordered = FALSE, segments = TRUE, colors = "black",
shapes = c(15, 16, 17, 18, 0, 1, 10, 12, 13, 14), segments.args = list(col
= "grey"), points.args = list(cex = 1), xlab = "Balance", xrange = NULL,
groups = NULL, tiptext = NULL, include.legend = TRUE,
legend.title = NULL, ...)
Arguments
x
A matrix of variables (rows) by strata (columns).
ordered
Should the variables be ordered from
most to least imbalance on the first statistic?
segments
Should lines be drawn between points for each
variable?
colors
Either a vector or a matrix of shape indicators
suitable to use as a col argument to the
points function. If the argument is a vector, the
length should be the same as the number of columns in < shapes
Either a vector or a matrix of shape indicators
suitable to use as a pch argument to the
points function. If the argument is a vector, the
length should be the same as the number of columns in < segments.args
A list of arguments to pass to the
segments function. points.args
A list of arguments to pass to the points function. xlab
The label of the x-axis of the plot.
xrange
The range of x-axis. By default, it is 1.25 times the range of x.
groups
A factor that indicates the group of each row in
x. Groups are printed under a common header.
tiptext
If you are using the RSVGTipsDevice library for
rendering, you can include an array of the dimensions of x
with another dimension of length 2. For example, if there are 4
observations and 2 strata, the array should be 4 by 2 by 2. The
t
include.legend
Should a legend be included?
legend.title
An optional title to attach to the legend.