# Generate data with the default arguments and look at the structure:
str(dat <- simNmixSpatial())
str(dat <- simNmixSpatial(show.plots=FALSE))
# \donttest{
# More surveys
str(dat<- simNmixSpatial(nsurveys = 10))
# Minimal number of surveys is 1
str(dat<- simNmixSpatial(nsurveys = 1))
# Much more common species
str(dat<- simNmixSpatial(mean.lambda = exp(4)))
# Only negative linear effect of elevation
str(dat<- simNmixSpatial(beta = c(-2, 0)))
# No effect of elevation at all
str(dat<- simNmixSpatial(beta = c(0, 0)))
# Perfect detection (p = 1)
str(dat<- simNmixSpatial(mean.p = 1))
# No effect of forest cover on detection
str(dat<- simNmixSpatial(alpha = c(0, -1)))
# No effect of wind speed on detection
str(dat<- simNmixSpatial(alpha = c(-1, 0)))
# Sample only 100 quadrats
str(dat<- simNmixSpatial(sample.size = 100))
# Sample all 2500 quadrats
str(dat<- simNmixSpatial(sample.size = 2500))
# Larger variance of the multivariate Gaussian Random variable in the random field
# (this will increase the effect of the field on abundance and counts)
str(dat<- simNmixSpatial(variance.RF = 10))
# No spatial autocorrelation (Variant 1: set variance to 0)
str(dat<- simNmixSpatial(variance.RF = 0))
# No spatial autocorrelation (Variant 2: set theta very close to 0,
# but not quite 0, otherwise function breaks)
str(dat<- simNmixSpatial(theta.RF = 0.0001))
# Larger value of theta.RF gives larger 'islands'
#try(str(dat<- simNmixSpatial(theta.RF = 100))) # works with RandomFields
# Truncate abundance in final plots to presence/absence
str(dat<- simNmixSpatial(truncN = 0.5))
# Essentially do not truncate abundance in final plots
str(dat<- simNmixSpatial(truncN = 70))
# }
Run the code above in your browser using DataLab