multROCPlot: Plot multiple roc objects on the same ggplot

Description Usage Arguments Value Examples

Description

Plot multiple roc objects on the same ggplot

Usage

1

Arguments

casc

A casc object

Value

A ggplot object with ROC curves plotted for each cluster

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(SingleCellExperiment)

counts <- matrix(rnorm(40000, 10, 10), ncol=200, nrow=200)
sce <- SingleCellExperiment(assays = list(logcounts = counts))
colnames(sce) <- stringi::stri_rand_strings(200, 5)
rownames(sce) <- stringi::stri_rand_strings(200, 5)

cluster_1 <- rep(c(0, 1, 1, 1, 1, 0, 1, 1, 1, 1), 20)
cluster_2 <- rep(c(0, 1, 1, 0, 1, 0, 1, 1, 0, 1), 20)

casc_list <- casc(sce, list(cluster_1, cluster_2), marker_num=1500)
multROCPlot(casc_list$casc_1)

jamez-eh/casc documentation built on June 12, 2019, 1:43 a.m.