plotvarpart: Create Venn driagrams graph

View source: R/plotvarpart.R

plotvarpartR Documentation

Create Venn driagrams graph

Description

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.

Usage

plotvarpart(
  x,
  x1 = "X1",
  x2 = "X2",
  resi = "Residuals",
  colour = "grey",
  fill = NA,
  grad = "/",
  fill1 = "white",
  fill2 = "black",
  font = "serif"
)

Arguments

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 TRUE.

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.

Value

The function will return a graphic type Venn diagram.

Author(s)

Rafael Costa Bastos

Examples

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)

bastosrc/graphTest documentation built on Feb. 23, 2024, 11:28 p.m.