Learn R Programming

magree (version 1.2)

plot.magree: plot methods for magree, oconnell and schouten objects

Description

plot methods for magree, oconnell and schouten objects

Usage

# S3 method for magree
plot(x, type = c("p1", "kappa by observer"),
xlab = NULL, ylab = NULL, main = NULL, ...)
# S3 method for oconnell
plot(x, type = c("p1"), xlab = NULL, ylab = NULL, main = NULL, ...)
# S3 method for schouten
plot(x, type = c("kappa by observer"), xlab = NULL,
ylab = NULL,
main = NULL, xdelta = 0.1, axes = TRUE, ...)

Arguments

x

magree, oconnell or schouten object.

type

Type of plot. For "p1", plot the probabilities by observer. For "kappa by observer", plot the kappas for each observer.

xlab

x-axis label

ylab

y-axis label

main

main label

xdelta

For plot.schouten and "kappa by observer", specifies the width of the brackets for the confidence intervals.

axes

Bool for whether to plot the axes.

...

other arguments passed to plot

Examples

Run this code
fit <- schouten(landis)
plot(fit)
fit <- oconnell(landis)
plot(fit,type="p1")

Run the code above in your browser using DataLab