feature_hist: Plot histogram of feature prevalence

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Compute the feature prevalence (present in different cutoffs) after removing the features of the first index iterations, and then plot the histogram of remaining features. It calls feature_prevalence(..., hist.plot=TRUE).

Usage

1
feature_hist(li, index)

Arguments

li

the list result of feature_removal.

index

removing the features of the first index iterations. It allows a positive integer or a proper fraction. If inproper fraction, it is regarded as as.integer(index).

Value

histogram

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
g1 <- SWRG1; g0 <- SWRG0

result.complex <- feature_removal(g1, g0,
    cutoff1=0.95, cutoff0=0.925,
    offset=c(0.5, 1, 2))

# index is a proportion in 0-1
feature_hist(result.complex, 0.5)

# index is a positive integer
feature_hist(result.complex, 233)

cihga39871/iteremoval documentation built on May 17, 2019, 10:12 p.m.