Description Usage Arguments Value Author(s) See Also Examples
This function adds functionality to the base R boxplot
function. Now it is straightforward to add jittered data to the plot, and to overlay information about the sample mean and standard deviation. The function also supports stratification.
1 2 3 4 5 | bplot(y, x=rep(1, length(y)), data = NA, strata = NULL, xjitter = TRUE, yjitter = TRUE,
range = 0, sd = TRUE, sdx = TRUE, log = FALSE,
cex = c(meancex = 1, jittercex = 0.8),
col = c(sdcol = "dodgerblue3", jittercol = "gray30"), main = NULL, xlab = NULL,
ylab = NULL, names = NULL, ylim = NULL, legend=FALSE)
|
y |
dependent variable. |
x |
independent variable. Must by the same length as |
data |
if entered, must contain both |
strata |
strata variable(s), used to stratify the plot. |
xjitter |
a logical specifying if the jittered data (jittered on x-axis) are to be displayed or not. Default is |
yjitter |
a logical specifying if the jittered data (jittered on y-axis) are to be displayed or not. Default is |
range |
passed to the |
sd |
a logical specifying if the standard devation of |
sdx |
a logical specifying if the standard deviation of |
log |
a logical specifying if the data are to be displayed on a log scale. Passed to |
cex |
passed to |
col |
passed to |
main |
passed to |
xlab |
passed to |
ylab |
passed to |
names |
names (if any) of |
ylim |
the range for plotting the y-axis, passed to |
legend |
a logical value. If |
Produces a plot. No value is returned.
Scott S. Emerson, M.D., Ph.D., Andrew J. Spieker, Brian D. Williamson, Travis Y. Hee Wai, and Solomon Lim
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.