partiplot: Plotting Partitioned Diversity

Description Usage Arguments Details Value See Also Examples

Description

Graphical display of partitioned data. Graphics include a stacked bar chart and line plot. Both observed partition and expected partition (i.e., mean of the null statistical distributions) are shown in both the bar chart and line plot.

Usage

1
partiplot(part.obj, beta.type = "add", plot.type = "bar")

Arguments

part.obj

an object of class "partition", a result of a call to partition

beta.type

the method of partition to be plotted; if "add", additive diversity will be plotted; if "mult", multiplicative diversity will be plotted.

plot.type

the type of graph; if "bar", a stacked bar chart will be plotted. if "line", a line plot will be plotted with 95% CI error bars.

Details

Function partiplot visualizes the partitioned data from an object of class partition.

The function uses ggplot to visualize the partitioned data. To save the graphic, use the ggsave] function.

Value

A ggplot graphic of the observed and expected partition. "bar" represents a stacked bar chart with the y-axis representing a proportion of the gamma (regional) diversity explained by each level. "line" represents a line plot of the change in alpha- and beta-diversity of both observed and expected data. Error bars represent 95% CIs of null statistical distribution.

See Also

The diversiting partitioning function partition.

Examples

1
2
3
4
5
6
7
8
## Not run: 
## Plot a stacked bar chart of the additive partitioned data
partiplot(part.obj, beta.type = "add", plot.type = "bar")

## Plot a line plot of the multiplicative partitioned data
partiplot(part.obj, beta.type = "mult", plot.type = "line")

## End(Not run)

partitionr/PARTITIONR documentation built on Dec. 3, 2019, 11:11 p.m.