Contrast_Venn: Function to Create a Venn Diagram of DEGs with Custom Colors

View source: R/Contrast_Venn.R

Contrast_VennR Documentation

Function to Create a Venn Diagram of DEGs with Custom Colors

Description

This function creates a Venn Diagram using the 'ggVennDiagram' package. It allows customization of various aesthetic elements of the diagram, including colors.

Usage

Contrast_Venn(
  all_degs_venn,
  edge_colors,
  name_color,
  fill_colors,
  label_size = 4,
  edge_size = 3
)

Arguments

all_degs_venn

A list of DEG sets for Venn Diagram creation.

edge_colors

A vector of colors for the edges of the Venn Diagram sets.

name_color

A vector of colors for the names of the sets in the Venn Diagram.

fill_colors

A vector of two colors for the gradient fill of the Venn Diagram.

label_size

The size of the labels showing the number of elements in each set (default is 4).

edge_size

The size of the edges of the Venn Diagram sets (default is 3).

Value

A 'ggplot' object representing the Venn Diagram.

Examples


data("all_degs_venn", package = "TransProR")

edge_colors <- c("#1b62bb","#13822e","#332c3a","#9e2d39")
name_color <- c("#1b64bb","#13828e","#337c3a","#9e9d39")
fill_colors <- c("#e3f2fa", "#0288d1")

Contrast_degs_venn <- Contrast_Venn(all_degs_venn, edge_colors, name_color, fill_colors)

TransProR documentation built on April 4, 2025, 3:16 a.m.