plotROCs {scDblFinder} | R Documentation |
Plot ROC curves for given scores.
plotROCs(scores, truth, called.class = NULL, nbT = TRUE, dot.size = 5)
scores |
A data.frame with the different types of scores as columns. |
truth |
A vector of the true class corresponding to each row of 'scores' |
called.class |
A numeric vector (with names corresponding to the columns of 'scores') indicating, for each method, the number of cases called as true (i.e. the threshold decided). Those will be plotted as points. |
nbT |
Logical; whether to add a dot for each score at the number of true positives (default TRUE). |
dot.size |
The size of the dots. |
a ggplot
myscores <- list( test=1:10 ) truth <- sample(c(TRUE,FALSE), 10, TRUE) plotROCs( myscores, truth )