plotCI {MCPAN} | R Documentation |
A function for convenient plotting of confidence intervals.
## Default S3 method: plotCI(x, ...) ## S3 method for class 'sci': plotCI(x, ...) ## S3 method for class 'sci.ratio': plotCI(x, ...) ## S3 method for class 'confint.glht': plotCI(x, ...)
x |
An object of class "sci", "sci.ratio" or "conf.int.glht" or a list with elements estimate , containing a numeric vector,conf.int , containing a matrix with two columns, giving the lower and upper bounds, and a string alternative , one of "two.sided", "less", "greater" |
... |
additional arguments to be passed to plotCII |
Plots the estimates, upper and lower limits using points
and segments
. The names of estimate
are passed as labels of the confidence intervals.
If infinite bounds occur, the plot region is limited by the most extreme non infinite bound or estimate.
A plot.
Internally, the function plotCII
is used.
x=c(8,9,9,18,39,44) n=c(2000,2000,2000,2000,2000,2000) x<-binomORci(x=x, n=n, names=c("0","120","240","480","600","720")) plotCI(x, lines=1)