sp_vennDiagram3: Generating venDiagram plot

Description Usage Arguments Value Examples

Description

Generating venDiagram plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
sp_vennDiagram3(
  data,
  header = TRUE,
  item_variable = NULL,
  set_variable = NULL,
  select_set_to_show = NULL,
  doWeights = FALSE,
  type = "ellipses",
  SetLabels = TRUE,
  Faces = TRUE,
  Sets = TRUE,
  FaceText = "weight",
  saveplot = NULL,
  debug = FALSE,
  saveppt = FALSE,
  ...
)

Arguments

data

Data file (the first column is the name of genes or other things one want to compare, the second column is set name of each items, tab separated).

item_variable

Specify the column containing all items (one of column names of data).

set_variable

Specify the column containing set names (one of column names of data).

select_set_to_show

Specific sets to look at.

doWeights

Whether to use weights to represent data sets

type

Represent data sets in different shapes. Do weighted select NO if the results are wrong For 2-set Venn diagrams: circles, squares. For 3-set Venn diagrams: circles, squares, ChowRuskey, triangles, AWFE. For 4-set Venn diagrams: ChowRuskey, AWFE, squares or ellipses. For Venn diagrams on more than four sets: classic(up to 8 sets), battle(up to 9 sets).

SetLabels

Whether to plot the names of the Sets. Default TRUE.

Faces

If Faces = TRUE, the sets will be filled with colors.

Sets

If Sets = TRUE, the boundaries of the Sets are shown.

FaceText

FaceText is a character vector which may contain any of c('weight','signature','sets','elements').

saveplot

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

...

Other parameters given to base_plot_save

Value

A pdf file.

Examples

1
2
3
4
5
## Not run:
vennDiagram_data = "vennDiagram.data"
sp_vennDiagram3(data=vennDiagram_data, header = TRUE, item_variable = "Gene",  set_variable = "Sample",
select_set_to_show = c("Set1","Set2","Set3"), doWeights = TRUE, type = "AWFE")
## End(Not run)

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