eigenbar: The eigenvalue of the OMI analysis

View source: R/eigenbar.R

eigenbarR Documentation

The eigenvalue of the OMI analysis

Description

The function plot the eigenvalues of the OMI analysis

Usage

eigenbar(
  subnic,
  col.sel = "black",
  col.unsel = "grey",
  ylab = "Eigen values in %",
  names.arg = NULL,
  main = NA,
  ...
)

Arguments

subnic

an object of class subniche.

col.sel

the color of the selected axes

col.unsel

the color of the other axes

ylab

label for y-axis, see title for more details.

names.arg

a vector of names to be plotted below each bar or group of bars. If this argument is omitted, then the names are taken from the names attribute of height if this is a vector, or the column names if it is a matrix.

main

a main title for the plot, see title for more details.

...

further arguments passed to or from other methods see barplot

Details

The black bars represents the selected axes for the OMI analysis See doi: 10.7717/peerj.3364 for more details on the subniche concept.

Examples

library(subniche)
data(doubs)
dudi1 <- dudi.pca(doubs$env, scale = TRUE, scan = FALSE, nf = 3)
nic1 <- niche(dudi1, doubs$fish, scann = FALSE)
# number of sites
N <- dim(nic1$ls)[1]
#Create a factor which defines the subsets
fact <- factor(c(rep(1,N/2),rep(2,N/2)))
# nic1 will be use as reference and fact will be use to define the subniches environment
subnic1 <- subniche(nic1, fact)
eigenbar(subnic1)

subniche documentation built on July 15, 2022, 5:05 p.m.

Related to eigenbar in subniche...