Learn R Programming

pairwiseCI (version 0.1-17)

plot.pairwiseCI: Plotting the output of pairwiseCI

Description

Easy method for plotting estimates and confidence bounds calculated using pairwiseCI.

Usage

## S3 method for class 'pairwiseCI':
plot(x,
 CIvert=NULL, CIlty = 1, CIlwd=1, CIcex=1,
 H0line=NULL, H0lty=1, H0lwd=1,
 main=NULL, ylab="", xlab="",
 \dots )

Arguments

x
an object of class "pairwiseCI", the output of function pairwiseCI
CIvert
logical, whether confidence intervals shall be plotted vertical if CIvert=TRUE and horizontal if CIvert=FALSE
CIlty
integer, giving the line type of the CI, as documented for cex in ?par
CIlwd
integer, giving the line width of the CI, as documented for lwd ?par
CIcex
numerical value giving the size of CIsymbols relative to the default value, see cex in ?par
H0line
Value to be plotted as vertical or horizontal line, depending on the value of CIvert
H0lty
integer, giving the line type of the CI, as documented for lty in ?par
H0lwd
integer, giving the line width of the CI, as documented for lwd in ?par
main
as main in plot
ylab
label of y-axis as ylab in plot, default is no label
xlab
label of x-axis as ylab in plot, default is no label
...
Further arguments to be passed to plot. Note, that for adjusting character size in the axes, one must currently adjust par(cex.axis), and some arguments as las, at, labels are defined internally.

concept

confidence

Examples

Run this code
data(Oats)

output <- pairwiseCI(yield ~ Block, data=Oats,
 by="nitro",method="Param.diff", control="I")

# default plot for difference methods:
plot(output)

# some small changes:
plot(output, CIvert=TRUE, H0line=c(-2,0,2), H0lty=c(2,1,2))

output <- pairwiseCI(yield ~ Block, data=Oats,
 by="nitro", method="Param.ratio", control="I")

# default plot for ratio methods:
plot(output)

# some small changes:
plot(output, CIvert=FALSE, H0line=c(0.7, 1, 1/0.7),
 H0lty=c(3,2,3))

Run the code above in your browser using DataLab