sitematch.plot: Scatterplot of ANNA and RDA-ANNA site matching functions

View source: R/Plotting Functions.R

sitematch.plotR Documentation

Scatterplot of ANNA and RDA-ANNA site matching functions

Description

Scatterplot of ANNA and RDA-ANNA site matching functions.

Usage

sitematch.plot(match.object, axis = c(1, 2))

Arguments

axis

A two character vector indicating which axis to plot

site.match.object

An object from "site.match"

Examples

#load datasets
data(YKEnvData,envir = environment()) #Biological dataset
data(YKBioData,envir = environment()) #Environmental dataset

#Calculate indicator metrics from raw biological data
bio.data.test<-benth.met(YKBioData,2,2)

#Extract just the summary metrics
bio.data<-bio.data.test$Summary.Metrics

#standardize row names between datasets
rownames(YKEnvData)<-bio.data.test$Site.List

#Match a test site (#201) to the nearest neighbour reference set
nn.sites<-site.match(YKEnvData[201,-c(1)],YKEnvData[1:118,-c(1)],k=NULL,adaptive=T)

Evaluate Results
sitematch.plot(nn.sites)

p-schaefer/BenthicAnalysis documentation built on May 3, 2023, 5:49 a.m.