plot.match.object: Plot of nearest-neighbour reference site distances to test...

View source: R/Plotting Functions.R

plot.match.objectR Documentation

Plot of nearest-neighbour reference site distances to test site

Description

Plot of nearest-neighbour reference site distances to test site

Usage

## S3 method for class 'match.object'
plot(match.object)

Arguments

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
plot(nn.sites)

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