Graphical function to used on the output of
forward() functions.It aims at plotting links between regional and
local trait/abundance distributions.
a list including the species pool composition (
index of the trait to be plotted following community data.frame (if multiple traits used in simulation).
an overall title for the plot.
type = "trait", the function provides density plots of the trait or
abundance distributions in the regional pool and in a local community.
type = "abund", the function displays the relationship between
regional and local species relative abundances.
type = "trait".
To be used on the output of
Return two stacked
ggplot2 density plots if
type = "trait" and a biplot if
type = "abund".
F. Munoz; P. Denelle
1 2 3 4 5 6 7 8 9 10
# Simulation of a neutral community including 100 individuals J <- 500; theta <- 50; m <- 0.1; comm1 <- coalesc(J, m, theta) plot_comm(comm1) plot_comm(comm1, type = "abund") # Stabilizing habitat filtering around t = 0.5 comm2 <- coalesc(J, m, theta, filt = function(x) 0.5 - abs(0.5 - x)) plot_comm(comm2) plot_comm(comm2, type = "abund")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.