plot_roc_overlay: Plot ROC overlay

Description Usage Arguments Value Examples

View source: R/plot_roc_overlay.R

Description

The function plots a density overlay of ROCs given the scores and labels

Usage

1
plot_roc_overlay(scores.mat, labels.mat, nbins = 100)

Arguments

scores.mat

numeric array

labels.mat

numeric array

nbins

numeric value

Value

list of Z(matrix) and roc_sum (average ROC curve)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
genes.labels <- matrix( c(rep(1, 1000), rep(0,9000)), nrow=1000, byrow=TRUE)
rownames(genes.labels) = paste('gene', 1:1000, sep='')
colnames(genes.labels) = paste('function', 1:10, sep='')

scores <- matrix( rnorm(10000), nrow=1000)
scores <- apply(scores, 2, rank) 
rownames(scores) = paste('gene', 1:1000, sep='')
colnames(scores) = paste('function', 1:10, sep='')

z <- plot_roc_overlay(scores, genes.labels)

sarbal/EGAD documentation built on Aug. 1, 2018, 1:38 a.m.