plotROCs {scDblFinder}R Documentation

plotROCs

Description

Plot ROC curves for given scores.

Usage

plotROCs(scores, truth, called.class = NULL, nbT = TRUE,
  dot.size = 5)

Arguments

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.

Value

a ggplot

Examples

myscores <- list( test=1:10 )
truth <- sample(c(TRUE,FALSE), 10, TRUE)
plotROCs(  myscores, truth )


[Package scDblFinder version 1.2.0 Index]