Description Usage Arguments Value Examples
Plot multiple roc objects on the same ggplot
1 |
casc |
A casc object |
A ggplot object with ROC curves plotted for each cluster
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.