sp_EulerDiagrams: Generate Euler diagrams (proposional)

Description Usage Arguments Details Value

Description

When format is items, data examples are

1
2
3
4
5
6
7
8
Items  Group
g1	Set1
g2	Set1
a1	Set3
a3	Set1
b4	Set1
g1	Set2
h1	Set4

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
sp_EulerDiagrams(
  data,
  format = "items",
  intersection_variable = NULL,
  count_variable = NULL,
  item_variable = NULL,
  set_variable = NULL,
  type = c("counts"),
  shape = "circle",
  manual_color_vector = NULL,
  alpha = 1,
  legend.position = "right",
  font_quantities = 1,
  lty = 1,
  labels_font = 1,
  saveplot = NULL,
  saveppt = FALSE,
  ...
)

Arguments

data

One filename or dataframe containing data in specified formats with header line.

format

items or counts with format specified above.

intersection_variable

Only used when format=counts to specify which column contains different types of interactions. For example data, first column name Intersection should be given here. Color should be specified for the appearance order of each set.

count_variable

Only used when format=counts to specify which column contains computed counts for different types of interactions. For example data, first column name Count should be given here.

item_variable

Only used when format=items to specify which column contains all items like genes or OTUs or species. For example data, first column name Items should be given here.

set_variable

Only used when format=items to specify which column contains group information of items. For example data, second column name Group should be given here. Color should be specified for the alphabetial order of each set.

type

Show percent or counts in the plot. Default counts.

shape

Use circle or ellipse in the plot. Default circle.

alpha

Generate an alpha transparency values for return colors. 0 means fully transparent and 1 means opaque. Default 1.

legend.position

Position of legend, accept top, bottom, left, right, none or c(0.8,0.8).

font_quantities

Font size for numbers in Euler plot. Default 1.

lty

Line type of circle or ellipse edges from 1 to 6 represents solid, dashed, dotted, dotdash, longdash and twodash separately. Default 1.

labels_font

Font size for labels in Euler plot. Default 1.

saveplot

Save plot to given file "a.pdf", "b.png".

saveppt

Output PPT format.

...

Other parameters given to base_plot_save

Details

When format is counts, data examples are

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Intersection	Count
Set1&Set2	2
Set1&Set3&Set4&Set5	1
Set3&Set5	2
Set1	1
Set2&Set4	1
Set2&Set3&Set4	1
Set2&Set5	1
Set3	1
Set5	1
Set4&Set5	1
Set4	2

Value

a grid object


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