# NOT RUN {
##### 5 datasets of 40 species spread on 4 communities without turnover
##### on the number of species nor variations in their distribution:
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 = FALSE,
Parameters.repl = FALSE)
##### 5 datasets of 40 species spread on 4 communities with species turnover
##### and variations in their distributions along the gradient:
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)
##### With a displacement matrix to control the direction of the changes
##### between series:
# Dispalcement matrix (Parameters x Communities):
disp <- matrix(data=c(0,0,0,
0,35,-0.0007,
0,10,0), nrow = 3, ncol = 3)
Series <- SyntheticDataSeries(CommunityPool = 60, CommunityNum = 3, Length = 500,
SeriesNum = 5, replacement = FALSE, SpCo = c(15,15,30),
Parameters = list(a = c(60,60,60),
b = c(-50,-50,400),
c = c(0.01, 0.01, 0.01)),
dev.a=30, dev.b=40, dev.c=0,
displacement = disp,
pal = c(rep("#008585",15), rep("#FBF2C4",15),
rep("#C7522B",30)))
# }
Run the code above in your browser using DataLab