View source: R/Contrast_Venn.R
Contrast_Venn | R Documentation |
This function creates a Venn Diagram using the 'ggVennDiagram' package. It allows customization of various aesthetic elements of the diagram, including colors.
Contrast_Venn(
all_degs_venn,
edge_colors,
name_color,
fill_colors,
label_size = 4,
edge_size = 3
)
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). |
A 'ggplot' object representing the Venn Diagram.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.