Description Usage Arguments Value Author(s) See Also Examples
This function use draw.pairwise.venn
to creates a
venn diagram for two vectors
1 2 3 4 5 |
vectors |
a list of vectors with names.
See also |
cat.cex |
size of the category names.
(see |
cex |
size of the label of the circles.
(see |
cat.pos |
optional. Location of the category names along the circles.
(see |
cat.dist |
optional. Distance of the category names to the circles.
(see |
label |
logical. If |
lab.cex |
size of the labels. |
lab.col |
color of the labels. |
fill |
optional, color of the circles.
(see |
file |
the file path where the image should be created (see ?RAM.plotting). |
ext |
filename extension, the type of image to be saved to. |
height |
the height of the image to be created (in inches). |
width |
the width of the image to be created (in inches). |
group.venn
returns a venn diagram for 2 to 5 sets. The
user can choose to place item labels for 2 sets of data,
however, the label locations can be wrong if the the smaller
data set is part of the bigger data set, in this case, set
label
as FALSE
. If the input datasets is more
than 2, label
will be ignored.
Wen Chen
see venn.diagram
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(ITS1, meta)
# core OTUs
core <- core.OTU.rank(data=list(ITS1=ITS1), meta=meta, rank="g",
meta.factor="Crop", percent=1)
# taxa that core OTUs assigned to
core.Crop1 <- core$ITS1$Crop1$taxa
core.Crop2 <- core$ITS1$Crop2$taxa
# venn plot
vectors <- list(Core_Crop1=core.Crop1, Core_Crop2=core.Crop2)
group.venn(vectors=vectors, label=TRUE, cat.pos=c(330, 150),
lab.cex=0.7)
## Not run:
group.venn(vectors=vectors, label=FALSE, cat.pos=c(330, 150),
lab.cex=0.7, cex=3)
## End(Not run)
|
Loading required package: vegan
Loading required package: permute
Loading required package: lattice
This is vegan 2.4-4
Loading required package: ggplot2
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.