Description Usage Arguments Details Value Author(s) Examples
Plots a continuous variable (such as a quantitative trait) by discrete categories (such as genotype).
1 2 3 4 |
object |
The name or values of the continuous variable |
x |
The name or values of the discrete category variable |
data |
A data frame containing values |
ylab |
A label for the y axis |
xlab |
A label for the x axis |
ylim |
y axis range |
points.method |
Name of method for plotting individual datapoints, either “stripchart” or “beeswarm” |
boxplot.layer |
Layer to draw the boxplot relative to individual datapoints, either “over”, “under”, or “none” |
col |
A vector of colours |
... |
Other arguments, ignored |
Generates a plot displaying numerical data (usually continuous) by levels of a factor.
When displaying such data, it is preferable to avoid the loss of information inherent in a classical boxplot, and to display all the individual datapoints if at all possible. However, the boxplot summary remains a desirable adjunct.
The argument points.method
specifies how individual datapoints
are drawn. The default, “beeswarm”, is deterministic and avoids
overlap of individual datapoints unless absolutely necessary, but may
be slow for large numbers of datapoints. The alternative,
“stripchart”, is fast but is not deterministic and tends to
overlap datapoints.
When datapoints are overlapping, it may be possible to visualise this
using transparency in col
.
Returns an invisible null. The plot is generated as a side effect.
Toby Johnson Toby.x.Johnson@gsk.com
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.