plotvarpart | R Documentation |
Function to create graphs type Ven diagram using objects of class varpart. The function has one argument that you to use to make graphs that show the variance partition in a colors gradient.
plotvarpart(
x,
x1 = "X1",
x2 = "X2",
resi = "Residuals",
colour = "grey",
fill = NA,
grad = "/",
fill1 = "white",
fill2 = "black",
font = "serif"
)
x |
One object of class varpart. |
x1 |
Partition name. |
x2 |
Other partition name. |
resi |
Risduals name. |
colour |
Circle colour. |
fill |
Circle fill. |
grad |
Logical argument to indicate if the graph must be in gradient. The default is |
fill1 |
Circle fill if it be in gradient. To the minor values. |
fill2 |
Circle fill if it be in gradient. To the major values. |
font |
Change the texts family in graph. |
The function will return a graphic type Venn diagram.
Rafael Costa Bastos
require(vegan)
require(ggplot2)
require(ggforce)
data(mite)
data(mite.env)
data(mite.pcnm)
mod <- varpart(mite, mite.env, mite.pcnm, transfo="hel")
plotvarpart(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.