dot-ordinationPlots: ORDINATION PLOT SAVING FUNCTION

.ordinationPlotsR Documentation

ORDINATION PLOT SAVING FUNCTION

Description

Calculates an ordination across two datasets prior to calculating two hypervolumes (one from each dataset)

Usage

.ordinationPlots(
  ordi,
  fscores,
  PEV,
  datatable,
  HVidvar,
  HVnames,
  ordination,
  outputs.dir,
  file.suffix
)

Arguments

ordi

the ordination object

fscores

factor scores

PEV

percent explained variance per PC

datatable

is a data.table contained the raw data for the two hypervolumes

HVidvar

the name or number of the column (in HVdata1/2) containing the ID of each hypervolume.

HVnames

character vector of hypervolume names

ordination

determines whether hypervolumes will be calculated on the raw data ("none") of on ordination factor scores (one of "PCA", "HillSmith", "dudi.mix"). Defaults to using a PCA.

outputs.dir

is the directory to store results

file.suffix

is a character string used as a suffix in file names

Value

NULL, just saves plots to a PDF


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.