# NOT RUN {
######## Artificial dataset & analysis:
SyntheticTrial <- SyntheticData(SpeciesNum = 20, CommunityNum = 3,
SpCo = NULL, Length = 500,
Parameters = list(a=rep(60, 3),
b=c(0,250,500),
c=rep(0.03,3)),
dev.c = .015, pal = c("#008585", "#FBF2C4", "#C7522B"))
SyntheticEcoFinder <- EcotoneFinder(SyntheticTrial[,-1],
dist = SyntheticTrial$Distance,
method = "all", groups = 3,
standardize = "hellinger",
diversity = "all")
### Derivatives:
SyntheticSlope <- Slope(SyntheticEcoFinder, method = "all",
axis.number = 2, diversity = "all")
### Plot:
require(colorspace)
plotSlope(SyntheticSlope, plot.data = FALSE,
plot.method = c("cmeans_slope", "vegclust_slope"),
col.method = terrain_hcl(3))
# }
Run the code above in your browser using DataLab