123456789101112131415161718192021222324252627282930313233343536373839404142 |
- % Generated by roxygen2: do not edit by hand
- % Please edit documentation in R/roc.R
- \name{simple.plotROC}
- \alias{simple.plotROC}
- \title{Plot a ROC curve with associated annotations}
- \usage{
- simple.plotROC(
- df,
- var,
- col = "black",
- x = 0.65,
- y = 0.1,
- unit = "ml",
- precise = FALSE,
- target = "alive"
- )
- }
- \arguments{
- \item{df}{data frame}
- \item{var}{variable to use to stratify patients}
- \item{col}{color of the line drawn}
- \item{x}{x coordinate of legend}
- \item{y}{y coordinate of legend}
- \item{unit}{\itemize{
- \item what unit to associate to thrshold on legend (ml)
- }}
- \item{precise}{number of decimal places to use when reporting opt threshold, TRUE:2, FALSE:0}
- \item{target}{column that holds binary outcomes}
- }
- \value{
- list object with items: roc object as created by simple.roc, thr optimal threshold, legend_text text to be put on final legend
- }
- \description{
- Plot a ROC curve with associated annotations
- }
|