[e25014]: / man / Contrast_Venn.Rd

Download this file

46 lines (37 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Contrast_Venn.R
\name{Contrast_Venn}
\alias{Contrast_Venn}
\title{Function to Create a Venn Diagram of DEGs with Custom Colors}
\usage{
Contrast_Venn(
all_degs_venn,
edge_colors,
name_color,
fill_colors,
label_size = 4,
edge_size = 3
)
}
\arguments{
\item{all_degs_venn}{A list of DEG sets for Venn Diagram creation.}
\item{edge_colors}{A vector of colors for the edges of the Venn Diagram sets.}
\item{name_color}{A vector of colors for the names of the sets in the Venn Diagram.}
\item{fill_colors}{A vector of two colors for the gradient fill of the Venn Diagram.}
\item{label_size}{The size of the labels showing the number of elements in each set (default is 4).}
\item{edge_size}{The size of the edges of the Venn Diagram sets (default is 3).}
}
\value{
A `ggplot` object representing the Venn Diagram.
}
\description{
This function creates a Venn Diagram using the 'ggVennDiagram' package.
It allows customization of various aesthetic elements of the diagram, including colors.
}
\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)
}