Learn R Programming

ModelGood (version 1.0.9)

click.Roc: Click on ROC curve

Description

Show marker value sensitivity and specificity at mouse point

Usage

click.Roc(object, pch = 19, label = TRUE, adj, col = "orange", cex = 3, ...)

Arguments

object
An object obtained with function Roc
pch
the symbol of the tag
label
If TRUE label the tag.
adj
passed to text to adjust of the legend relative to clickpoint.
col
the color of the tag
cex
the size of the tag
...
passed to identify

Value

the values at the tag

Details

A tag is set on the ROC curve at the mouse click and corresponding marker value, sensitivity and specificity shown below the click-point.

See Also

identify Roc

Examples

Run this code
## Not run: 
# x <- abs(rnorm(20))
# d <- data.frame(y=rbinom(1:20,1,p=x/max(x)))
# r <- Roc(y~x,data=d)
# plot(r)
# click.Roc(r)
#  ## End(Not run)

Run the code above in your browser using DataLab