simple.plotROC.Rd 932 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/roc.R
  3. \name{simple.plotROC}
  4. \alias{simple.plotROC}
  5. \title{Plot a ROC curve with associated annotations}
  6. \usage{
  7. simple.plotROC(
  8. df,
  9. var,
  10. col = "black",
  11. x = 0.65,
  12. y = 0.1,
  13. unit = "ml",
  14. precise = FALSE,
  15. target = "alive"
  16. )
  17. }
  18. \arguments{
  19. \item{df}{data frame}
  20. \item{var}{variable to use to stratify patients}
  21. \item{col}{color of the line drawn}
  22. \item{x}{x coordinate of legend}
  23. \item{y}{y coordinate of legend}
  24. \item{unit}{\itemize{
  25. \item what unit to associate to thrshold on legend (ml)
  26. }}
  27. \item{precise}{number of decimal places to use when reporting opt threshold, TRUE:2, FALSE:0}
  28. \item{target}{column that holds binary outcomes}
  29. }
  30. \value{
  31. list object with items: roc object as created by simple.roc, thr optimal threshold, legend_text text to be put on final legend
  32. }
  33. \description{
  34. Plot a ROC curve with associated annotations
  35. }