plotCounts: Plot eggCounts data
Description
Plot egg count data to reflect changes between before and after treatment.
Usage
plotCounts(data, paired=TRUE, points=TRUE, points.method="jitter",
xlabel="", ylabel="Faecal egg counts", ...)
Arguments
data
a data frame with two columns, the first column is before treatment counts, the second column is after treatment counts.
paired
logical. If true, uses the plot for the paired design. Otherwise uses the plot for the unpaired design
points
logical. If true, add individual points for unpaired plot. Omitted if paired is TRUE.
points.method
a quoted keyword to be used to separate coincident points if points is TRUE. The default method "overplot" causes such points to be overplotted, but it is also possible to specify "jitter" to jitter the points, or "stack" have coincident points stacked.
...
Additional argument for function xyplot
if paired is TRUE, for function boxplot
otherwise.
Value
A plot is returned based on the arguments.
Details
For paired data, a xyplot is used. For unpiared data, a grouped boxplot is used.
Examples
Run this code# NOT RUN {
data(epgs)
plotCounts(epgs)
# }
Run the code above in your browser using DataLab