plot_overlap: Plot Venn diagram

View source: R/plot_methods.R

plot_overlapR Documentation

Plot Venn diagram

Description

Plot a Venn diagram showing the overlaps among sets of significant feature for a given adjusted p-value threshold (see thr_venn argument of calculate_performance). Optionally, the truth can be included as a "perfect" method. Note that maximally five methods (including the truth, if applicable) can be compared.

Usage

plot_overlap(cobraplot, ...)

Arguments

cobraplot

A COBRAPlot object.

...

Additional arguments to limma::vennDiagram.

Value

Nothing, displays a graph

Author(s)

Charlotte Soneson

Examples

data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
                                   binary_truth = "status",
                                   aspects = "overlap")
cobraplot <- prepare_data_for_plot(cobraperf, colorscheme = "Dark2",
                                   incltruth = TRUE)
plot_overlap(cobraplot)

csoneson/iCOBRA documentation built on Nov. 5, 2024, 7:20 p.m.