Draws the fitted logistic regression function describing the posterior probability that two sites are analogues conditional upon the dissimilarity between the two samples. Confidence intervals are also computed and displayed if requested.
# S3 method for logitreg
plot(x, group = "all", npred = 100,
conf.int = 0.9, conf.type = c("none", "polygon", "lines"),
xlab = expression(D[ij]), ylab = "Pr (A+ | d)",
rug = TRUE, ticksize = 0.02,
col = "red", ref.col = "lightgrey",
lwd = 2, conf.lwd = 1, conf.lty = "dashed",
shade = "lightgrey", ...)
A plot on the current device.
object to plot; an object of class "logitreg"
, usually
the result of a call to logitreg
.
The group to plot the logit model for. Can be one of the
group labels or "Combined"
to draw the individual logit
models. Alternatively, and the default, is to use "all"
,
which divides the plotting region into the required number of
plotting regions and draws all the fitted curves.
number of points at which the fitted curves are evaluated for plotting purposes.
numeric; the confidence interval required.
character; how should the confidence interval be drawn. Default is not to draw the confidence interval.
character; the x and y axis labels.
logical; should rug plots be drawn?
The size of the tick marks used in rug plots.
The colour in which to draw the line representing the fitted values.
The colour of the reference lines drawn at 0 and 1.
The line width in which to draw the line representing the fitted values.
Line width and line type for the confidence
interval. Only used if conf.type = "lines"
is specified.
The colour for the fill and border of the confidence
interval if conf.type = "polygon"
is specified.
arguments passed on to plot
.
Gavin L. Simpson
logitreg
for an example, roc