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

Description Usage Arguments Details Value Examples

View source: R/flowerplot.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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

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

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

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

Tong-Chen/YSX documentation built on Jan. 25, 2021, 2:49 a.m.