Statistical transformation for ROC curves.
Usage
stat_roc(
mapping = NULL,
data = NULL,
geom = "path",
position = "identity",
na.rm = TRUE,
show.legend = NA,
inherit.aes = TRUE,
.focal_level = NULL,
...
)Arguments
- mapping
Set of aesthetic mappings created by
aes(). If specified andinherit.aes = TRUE(the default), it is combined with the default mapping at the top level of the plot.- data
The data to be displayed in this layer. If
NULL, the default, the data is inherited from the plot data as specified in the call toggplot().- geom
Geometric object to use. Default is "path".
- position
Position adjustment.
- na.rm
If
FALSE, the default, missing values are removed with a warning. IfTRUE, missing values are silently removed.- show.legend
Logical. Should this layer be included in the legends?
NA, the default, includes if any aesthetics are mapped.- inherit.aes
If
FALSE, overrides the default aesthetics, rather than combining with them.- .focal_level
The level of the
exposureaesthetic to treat as the event. Must be a level the data actually takes; a declared factor level that no observation takes is not accepted. IfNULL(default), the last observed level is used, which is the maximum value for numeric exposures.- ...
Other arguments passed on to layer().
