zoo_ca: Correspondance Analysis of the NISP data

View source: R/zoo_ca.R

zoo_caR Documentation

Correspondance Analysis of the NISP data

Description

Correspondance Analysis of the NISP data by periods

Usage

zoo_ca(
  df = NA,
  num_column = "num",
  site_column = "site",
  period_column = "period",
  percBOTA_column = "percBOTA",
  percOC_column = "percOC",
  percSUDO_column = "percSUDO",
  typSite_column = "type.site",
  lorder_period = NA,
  typsit_symb = NA,
  CA1_interval = c(-1, 2),
  CA2_interval = c(-1, 1),
  colVar = "black",
  shpVar = 17,
  pt_siz = 1.5,
  export.plot = T,
  dirOut = paste0(system.file(package = "zoowork"), "/results/"),
  ca.name = "ca.png",
  plot.width = 19.5,
  plot.height = 22.2,
  plot.dpi = 300,
  verbose = TRUE
)

Arguments

df

a dataframe

num_column

the column name of assemblage numbers

site_column

the column name of assemblage sites

period_column

the column name of assemblage periods

percBOTA_column

the column name of assemblage percents of BOTA

percOC_column

the column name of assemblage percents of OC

percSUDO_column

the column name of assemblage percents of SUDO

typSite_column

the column name of assemblage site types

lorder_period

a vector with the ordered periods

typsit_symb

a dataframe with the symbology

CA1_interval

the min and max intervals for the F1 axis

CA2_interval

the min and max intervals for the F2 axis

colVar

the color of the variables

shpVar

the shape of the variables

pt_siz

the size of the symbols

export.plot

if TRUE, save the plot

ca.name

the name of the output plot if saved

plot.width, plot.height, plot.dpi

the dimensions and resolution of the plot if saved

verbose

if TRUE (default): verbose

Value

a gglot with the different CA by period

Examples


df <- zoo_read()
lorder_period <- zoo_order_period(df)
typsit_symb <- zoo_legends(worksheets = c("sites_types"))
zoo_ca(df = df, lorder_period = lorder_period, typsit_symb = typsit_symb)


zoometh/zoowork documentation built on Aug. 21, 2022, 5:11 a.m.