flower_plot: Flower plot for stat common and unique gene among multiple...

View source: R/flower_plot.R

flower_plotR Documentation

Flower plot for stat common and unique gene among multiple sets.

Description

Flower plot for stat common and unique gene among multiple sets.

Usage

flower_plot(
  flower_dat,
  angle = 90,
  a = 1,
  b = 2,
  r = 1,
  ellipse_col_pal = "Spectral",
  circle_col = "white",
  label_text_cex = 1
)

Arguments

flower_dat

Dataframe: Paired comparisons differentially expressed genes (degs) among groups (1st-col~: degs of paired comparisons).

angle

Number: set the angle of rotation in degress. Default: 90.

a

Number: set the radii of the ellipses along the x-axes. Default: 0.5.

b

Number: set the radii of the ellipses along the y-axes. Default: 2.

r

Number: set the radius of the circle. Default: 1.

ellipse_col_pal

Character: set the color palette for filling the ellipse. Default: "Spectral", options: 'Spectral', 'Set1', 'Set2', 'Set3', 'Accent', 'Dark2', 'Paired', 'Pastel1', 'Pastel2'.

circle_col

Character: set the color for filling the circle. Default: "white".

label_text_cex

Number: set the label text cex. Default: 1.

Value

Plot: Flower plot for stat common and unique gene among multiple sets.

Author(s)

wei dong

Examples

# 1. Library TOmicsVis package
library(TOmicsVis)

# 2. Use example dataset
data(degs_lists)
head(degs_lists)

# 3. Default parameters
flower_plot(degs_lists)

# 4. Set angle = 60
flower_plot(degs_lists, angle = 60)

# 5. Set ellipse_col_pal = "Accent"
flower_plot(degs_lists, ellipse_col_pal = "Accent")

# 6. Set a = 1, b = 2, r = 1
flower_plot(degs_lists, a = 1, b = 2, r = 1, ellipse_col_pal = "Set2")


TOmicsVis documentation built on Aug. 29, 2023, 1:06 a.m.