powered by
Plot egg count data to reflect changes between before and after treatment.
plotCounts(data, paired = TRUE, points = TRUE, points.method = "jitter", xlabel = "", ylabel = "Faecal egg counts [epg]", ...)
A plot is drawn.
a data.frame with two columns, the first column is before treatment counts, the second column is after treatment counts.
logical. If TRUE, uses the plot for the paired design. Otherwise uses the plot for the unpaired design.
logical. If TRUE, add individual points for unpaired plot. Not used if paired = TRUE.
paired = TRUE
string. It is used to separate coincident points if points = TRUE. One of “jitter”, “stack” or “overplot”.
points = TRUE
string. Label of x-axis.
String. Label of y-axis.
Additional arguments for function xyplot if paired is TRUE, for function boxplot otherwise.
xyplot
boxplot
Craig Wang
For paired data, a xyplot is used. For unpiared data, a grouped boxplot is used.
data(epgs) plotCounts(epgs[,c("before","after")], paired = TRUE)
Run the code above in your browser using DataLab