# NOT RUN {
# }
# NOT RUN {
SyntheticTrialSeries <- SyntheticDataSeries(CommunityPool = 40,
CommunityNum = 4, SpCo = NULL,
Length = 500, SeriesNum = 5,
Parameters = list(a=rep(60, 4),
b=c(0,200,350,500),
c=rep(0.03,4)),
pal = c("#008585", "#B8CDAE", "#E6C186", "#C7522B"),
replacement = TRUE,
Parameters.repl = TRUE)
EcoTimeSeriesTrial <- EcotoneFinderSeries(data = SyntheticTrialSeries,
dist = "Distance",
method = c("cmeans","vegclust"),
series = "Time", groups = 4,
standardize = "hellinger", na.rm=TRUE)
#### Network from the common number of species above membership threshold between clusters:
SyntheticNetworkSeries <- NetworkEcoSeries(EcoTimeSeriesTrial, threshold = .2,
method = "cmeans", plot.type = "network",
plot = "community", dist = "count",
network.group = "cluster",
dist.method = "inner_product",
no.plot = FALSE, layout = "spring",
shape = "ellipse",
palette = "colorblind")
#### Network of relations between species from their raw membership values in each cluster:
SyntheticNetworkSeries <- NetworkEcoSeries(EcoTimeSeriesTrial, threshold = .2,
method = "cmeans", plot.type = "network",
plot = "species", dist = "raw",
dist.method = "inner_product",
no.plot = FALSE, layout = "spring",
shape = "ellipse",
palette = "colorblind")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab