flower_plot_inner: Flower plot could be treated as one kind of venn diagram but...

View source: R/flowerplot.R

flower_plot_innerR Documentation

Flower plot could be treated as one kind of venn diagram but only showing common items like OTUs or genes among all groups and total items (or total items excluding common items) for each group.

Description

Modified from http://blog.sciencenet.cn/blog-3406804-1159241.html

Usage

flower_plot_inner(
  sample,
  total_num,
  core_num,
  start = 90,
  a = 0.5,
  b = 2,
  r = 1,
  group_color = rgb(135, 206, 235, 150, max = 255),
  group_color_alpha = 0.6,
  common_color_alpha = 0.6,
  label = "core",
  common_color = "white",
  ...
)

Arguments

sample

A vector of sample names.

Like

c("Grp1", "Grp2", "Grp3")
total_num

Number of total or specififc items for each group.

like

c(20, 30, 40)
core_num

Number of items common to all groups.

start

Start position of first ellipse. Default 90 represents starting from 0 clock.

a, b

Vectors, radii of the ellypses along the two axes in user units.

r

Set the size of the center circle.

group_color

Set the color of the petal ellipse (each group), with input format,like:c('#6181BD4E','#F348004E','#64A10E4E'...) or supply a RColorBrewer color set like "Set1", "Set2", "Set3", "YlOrRd" (check http://www.sthda.com/english/wiki/colors-in-r for more).

label

The name of the center circle.

common_color

The color of the center circle. Default "white".

...

Additional arguments passed to polygon.

Details

This function is not planned for public usages.

Value

A pdf image.

Examples

flower_plot_inner(sample = sample_id, total_num = total_num, core_num = core_num)


Tong-Chen/ImageGP documentation built on April 14, 2025, 12:54 p.m.