Function that calls 'getVennCounts()' and draws a VennDiagram of
peak intersections using the ggvenn
package.
ggVennPeaks(
peak_list,
peak_names = names(peak_list),
percent = TRUE,
stranded = FALSE,
true_overlaps = FALSE,
in_fill = c("blue", "gold3"),
alpha = 0.4,
out_color = "black",
name_color = "black",
text_color = "black",
name_size = 5,
label_size = 3,
title = "",
subtitle = "",
return_peaks = FALSE
)
List of dataframes with the genomic coordinates of the regions to overlap. Dataframes must contain the columns seqnames, start, end.
Character with the same length as the 'peaks' list. The names that are given to the diferente objects in the 'peaks' list. Default: 'names(peaks)'
Logical of length 1. Whether to show the percentage corresponding to each part of the intersection. Default = T.
Logical of length 1. If TRUE, it considers the strand information to do the overlaps. Default = FALSE.
Logical of length 1. Only if peak_list has length 2. If TRUE, it counts the overlapping regions from each set using plyranges. If TRUE, stranded and percent are set to FALSE. Default: FALSE
Character of length equal to 'peak_list'. Colors of each set in 'peak_list'. Default: c("blue", "gold3").
Numeric of length 1. Transparency of the the Venn circles. Default: 0.4.
Character of length 1 or equal to 'peak_list'. Color of the circles outer lines. Default: "black".
Character of length 1 or equal to 'peak_list'. Color of the titles of each set of peaks. Default: "black".
Character of length 1. Color of the text inside the Venn circles (i.e. number of peaks and percentage in each intersection). Default: "black".
Numeric of length 1. Size of the name of each peak set. Default: 5.
Numeric of length 1. Size of the text inside the Venn circles. Default: 3.
Character of length 1. Title of the plot. Can be NULL. Default: "".
Character of length 1. Title of the plot. Can be NULL. Default: "".
Logical of length 1. Whether to return the peaks of each set overlapping with the other. Only if peak_list has length 2. If TRUE, it won't draw the plot. Default: FALSE.
ChIPseeker::makeVennDiagram