sMSROC_plot {sMSROC} | R Documentation |
Plot of the sMS ROC curve estimate
Description
Provides informative plots of the sMS ROC curve estimates.
Usage
sMSROC_plot(sMS, m.value)
Arguments
sMS |
object of class |
m.value |
marker value. It is an optional parameter that, when indicated, adds over the graphic of the ROC curve, the point which corresponds to that marker value. |
Details
The function provides two types of graphics:
A basic plot approximating the ROC curve by the pairs given by the sequences 1 - SP and SE, from the
sMSROC
object. The layersgeom_roc()
androc_style()
from theplotROC
package were added to this plot, which make possible to take advantage of the functionality of this package.A customized graphic of the ROC curve whose class is
ggplot
, obtained approximating the sequences 1 - SP and SE. When te parameterm.value
is indicated, the final plot displays over the ROC curve estimate the point that corresponds to the entered value.
Value
A list with the following elements:
basic.plot |
object that can be used and customized by the tools from the |
roc.plot |
object of class |
See Also
sMSROC
Examples
# Example of the use of the plot.sMSROC function
data(ktfs)
DT = ktfs
ROC <- sMSROC(marker = DT$score,
status = DT$failure,
observed.time = DT$time,
time = 5,
meth = "S")
plot <- sMSROC_plot(sMS = ROC, m.value = 4.2)
plot$basicplot; plot$rocplot