View source: R/Plotting Functions.R
sitematch.plot | R Documentation |
Scatterplot of ANNA and RDA-ANNA site matching functions.
sitematch.plot(match.object, axis = c(1, 2))
axis |
A two character vector indicating which axis to plot |
site.match.object |
An object from |
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.