plot.openCR {openCR}R Documentation

Plot Estimates

Description

Session-specific estimates of the chosen parameter are plotted.

Usage


## S3 method for class 'openCR'
 plot(x, par = "phi", newdata = NULL, add = FALSE, xoffset = 0, ylim = NULL, 
    useintervals = TRUE, CI = TRUE, intermediate.x = TRUE, alpha = 0.05, stratum = 1, ...)
    

Arguments

x

openCR object from openCR.fit

par

character names of parameter to plot

newdata

dataframe of predictor values for predict (optional)

add

logical; if TRUE then points are added to an existing plot

xoffset

numeric offset to be added to all x values

ylim

numeric vector of limits on y-axis

useintervals

logical; if TRUE then x values are spaced according to the intervals attribute

CI

logical; if TRUE then 1-alpha confidence intervals are plotted

intermediate.x

logical; if TRUE then turnover parameters are plotted at the mid point on the x axis of the interval to which they relate

alpha

numeric confidence level default (alpha = 0.05) is 95% interval

stratum

numeric; stratum to plot if more than one

...

other arguments passed to plot, points and segments

Details

If ylim is not provided it is set automatically.

For customization you may wish to prepare a base plot with plot(... , type = 'n') and use add = TRUE.

Value

The x coordinates (including xoffset) are returned invisibly.

See Also

predict, plot.derivedopenCR)

Examples


## Not run: 

fit <- openCR.fit(join(ovenCH), type='CJS', model = phi~session)
plot(fit,'phi', pch = 16, cex=1.3, yl=c(0,1))


## End(Not run)


[Package openCR version 2.2.6 Index]