plotCounts {eggCounts}R Documentation

Plot faecal egg count 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 [epg]", ...)

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. Not used if paired = TRUE.

points.method

string. It is used to separate coincident points if points = TRUE. One of “jitter”, “stack” or “overplot”.

xlabel

string. Label of x-axis.

ylabel

String. Label of y-axis.

...

Additional arguments for function xyplot if paired is TRUE, for function boxplot otherwise.

Details

For paired data, a xyplot is used. For unpiared data, a grouped boxplot is used.

Value

A plot is drawn.

Author(s)

Craig Wang

Examples

data(epgs)
plotCounts(epgs[,c("before","after")], paired = TRUE)

[Package eggCounts version 2.3-2 Index]