top_elements_overlap: Overlap of top elements from different metrics

Description Usage Arguments Details Value Author(s) Examples

View source: R/top_rows.R

Description

Overlap of top elements from different metrics

Usage

1
2
3
top_elements_overlap(object, top_n = round(0.25*length(object[[1]])),
    method = c("euler", "upset", "venn", "correspondance"),
    fill = NULL, ...)

Arguments

object

A list which contains values from different metrics.

top_n

Number of top rows.

method

euler: plot Euler diagram by euler; upset: draw the Upset plot by UpSet; venn: plot Venn diagram by venn; correspondance: use correspond_between_rankings.

fill

Filled color for the Euler diagram. The value should be a color vector. Transparency of 0.5 are added internally.

...

Additional arguments passed to plot.euler, UpSet or correspond_between_rankings.

Details

The i^th value in every vectors in object should correspond to the same element from the original data.

Value

No value is returned.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
3
4
5
6
7
8
require(matrixStats)
set.seed(123)
mat = matrix(rnorm(1000), nrow = 100)
lt = list(sd = rowSds(mat), mad = rowMads(mat))
top_elements_overlap(lt, top_n = 20, method = "euler")
top_elements_overlap(lt, top_n = 20, method = "upset")
top_elements_overlap(lt, top_n = 20, method = "venn")
top_elements_overlap(lt, top_n = 20, method = "correspondance")

cola documentation built on Nov. 8, 2020, 8:12 p.m.