AOplot: Abundance Occupancy Plot

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

Plots the abundance-occupancy relationship of species in a community categorized as common or rare by fuzzyq.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
AOplot(
  fq,
  col.rc = c("red", "blue"),
  opacity = 0.1,
  log.x = FALSE,
  log.y = FALSE,
  xLab = "Fraction of sites occupied",
  yLab = "Mean abundance",
  ...
)

Arguments

fq

A list of class fuzzyq returned by FuzzyQ::fuzzyq.

col.rc

A vector specifying two colors to be used to plot common and rare species. Accept any valid color specification in R.

opacity

Number within [0,1] specifying the opacity of convex hulls grouping common and rare species.

log.x

Logical. Whether or not the x axis should be in log10 scale.

log.y

Logical. Whether or not the y axis should be in log10 scale.

xLab

String. Title for the x axis.

yLab

String. Title for the y axis.

...

Other graphical parameters to be passed to plot.

Value

A scatter plot of occupancy vs. abundance of species. Convex hulls enclose common and rare species.

Examples

1
2
3
4
5
6
7
8
data(antsA)
FQAnts <- fuzzyq(antsA, sorting = TRUE)
AOplot(FQAnts) # Plor with default values

# Alternative with colors specified in Hex code, logarithmic axes and other
# point format
AOplot(FQAnts, col.rc = c("#013bad","#bd5f69"),
       log.x = TRUE, log.y = TRUE, pch = 4)

Ligophorus/FuzzyQ documentation built on June 3, 2021, 4:37 a.m.