# NOT RUN {
##### Artificial dataset & analyses:
SyntheticTrial <- SyntheticData(SpeciesNum = 20, CommunityNum = 4,
SpCo = NULL ,Length = 500,
Parameters=list(a = rep(60, 4),
b = c(0,150,350,500),
c = rep(0.015,4)),
dev.c = 0.007,
pal = c("#008585", "#B8CDAE", "#E6C186", "#C7522B"))
EcoFinder <- EcotoneFinder(SyntheticTrial[,-1],
dist = SyntheticTrial$Distance,
method = "all", groups=4,
standardize = "hellinger",
diversity="all")
##### Centroid plot without normalisation:
Centroid <- ExtractCentroid(EcoFinder, method = "fanny",
normalized = "none", threshold = 0,
plot = TRUE, position = "dodge",
col = colorspace::heat_hcl(4))
##### Centroid plot normalised by clusters:
Centroid <- ExtractCentroid(EcoFinder, method = "fanny",
normalized = "cluster", threshold = 0,
plot = TRUE, position = "dodge",
col = colorspace::heat_hcl(4))
# }
Run the code above in your browser using DataLab