# extrapolate from scale of 1 species to 10 species
res_scale(mvar_b = 0.25, murho_b_abundance = -0.034, msd_b = sqrt(0.1),
murho_b_disturbance = 0, B = 30, lambda=1)
# plot relationship for groups of 1 to 30 species
plot(1:30, res_scale(mvar_b = 0.25, murho_b_abundance = -0.034, msd_b = sqrt(0.1),
murho_b_disturbance = 0, B = 1:30, lambda=1),
xlab="ecological scale", ylab="resilience, r", type="b")
Run the code above in your browser using DataLab