Learn R Programming

STEPCAM (version 1.2)

plotSTEPCAM: Plot the output generated by the STEPCAM_ABC function

Description

This function plots the posterior distribution inferred by the STEPCAM_ABC function for the three community assembly parameters dispersal assembly, habitat filtering and limiting similarity.

Usage

plotSTEPCAM(output)

Arguments

output
The list generated by the function STEPCAM_ABC as output, this list contains the following elements: - DA a vector containing the posterior distribution for the parameter dispersal assembly - HF a vector containing the posterior distribution for the parameter habitat filtering - LS a vector containing the posterior distribution for the parameter limiting similarity

Examples

Run this code
## Not run: 
# Artificial.Data <- generate.Artificial.Data(n_species = 40, n_traits = 3,
#                         n_communities = 5, occurence_distribution = 0.2,
#                         average_richness = 0.5, sd_richness = 0.2,
#                         mechanism_random=FALSE)
# O <- STEPCAM_ABC(Artificial.Data$abundances,Artificial.Data$traits,
#                  numParticles=10,n_traits=3,plot_number=1,stopRate=0.8);
# plotSTEPCAM(O);
# ## End(Not run)

Run the code above in your browser using DataLab