sMSROC_plot: Plot of the sMS ROC curve estimate

View source: R/Summary.R

sMSROC_plotR 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 sMS returned from function sMSROC.

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 layers geom_roc() and roc_style() from the plotROC 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 parameter m.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 plotROC package.

roc.plot

object of class ggplot. Although it is already customized (title, colors, axis labels, ..., etc.) the end-users can make their own changes by adding the corresponding layers, with the available tools from the ggplot2 package.

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

sMSROC documentation built on May 29, 2024, 1:43 a.m.

Related to sMSROC_plot in sMSROC...