Venn plot for stat common and unique gene among multiple sets.
Usage
venn_plot(
data,
title_size = 1,
label_show = TRUE,
label_size = 0.8,
border_show = TRUE,
line_type = "longdash",
ellipse_shape = "circle",
sci_fill_color = "Sci_AAAS",
sci_fill_alpha = 0.65
)
Arguments
- data
Dataframe: Paired comparisons differentially expressed genes (degs) among groups (1st-col~: degs of paired comparisons).
- title_size
Numeric: sets title size. Default: 1, min: 0, max: NULL.
- label_show
Logical: show intersection labels. Default: TRUE, options: TRUE, FALSE.
- label_size
Numeric: intersection labels size. Default: 0.8, min: 0, max: NULL.
- border_show
Logical: show border line. Default: TRUE, options: TRUE, FALSE.
- line_type
Character: ellipse border line type. Default: "blank", options: "blank", "solid", "dashed", "dotted", "dotdash", "longdash", "twodash".
- ellipse_shape
Character: ellipse shape. Default: "circle", options: "circle", "ellipse".
- sci_fill_color
Character: ggsci color palette. Default: "Sci_AAAS", options: "Sci_AAAS", "Sci_NPG", "Sci_Simpsons", "Sci_JAMA", "Sci_GSEA", "Sci_Lancet", "Sci_Futurama", "Sci_JCO", "Sci_NEJM", "Sci_IGV", "Sci_UCSC", "Sci_D3", "Sci_Material".
- sci_fill_alpha
Numeric: ggsci fill color alpha. Default: 0.65, min: 0.00, max: 1.00.
Examples
# 1. Library TOmicsVis package
library(TOmicsVis)
# 2. Use example dataset
data(degs_lists)
head(degs_lists)
#> CT.vs.LT20 CT.vs.LT15 CT.vs.LT12 CT.vs.LT12_6
#> 1 transcript_9024 transcript_4738 transcript_9956 transcript_10354
#> 2 transcript_604 transcript_6050 transcript_7601 transcript_2959
#> 3 transcript_3912 transcript_1039 transcript_5960 transcript_5919
#> 4 transcript_8676 transcript_1344 transcript_3240 transcript_2395
#> 5 transcript_8832 transcript_3069 transcript_10224 transcript_9881
#> 6 transcript_74 transcript_9809 transcript_3151 transcript_8836
# 3. Default parameters
venn_plot(degs_lists)
# 4. Set line_type = "blank"
venn_plot(degs_lists, line_type = "blank")
# 5. Set ellipse_shape = "ellipse"
venn_plot(degs_lists, ellipse_shape = "ellipse")
# 6. Set sci_fill_color = "Sci_IGV"
venn_plot(degs_lists, sci_fill_color = "Sci_IGV")