plotComb: Plot traitspace results

Description Usage Arguments Details Value References See Also Examples

View source: R/plotComb.R

Description

Plots traitspace results in a single window. Plots the predicted relative abundances and the observed relative abundances (by default) or the predicted species distributions and the observed species distributions if byrow=FALSE.

Usage

1
plotComb(result, obs = NULL, byrow = TRUE, compare = TRUE)

Arguments

result

The output from the traitspace function (class traitspace)

obs

The observed matrix - where, each row corresponds to a site and each column to a species - the order of sites and species should match with the order in which they appear in the predicted matrix. By default, NULL, will generate the observed matrix using the supplied trait data using the trueP function. See the trueP function for details.

byrow

By default, TRUE, will plot the relative abundances. If FALSE, will plot the species distribution.

compare

By default, TRUE, will plot both the predicted as well as the observed values. If FALSE, will only plot the predicted values.

Details

Plots upto six species/sites in a single window. Will create multiple windows (multiples of six) if the number of species/sites is more.

Value

Traitspace plots.

References

Laughlin, D. C., Joshi, C., Richardson, S. J., Peltzer, D. A., Mason, N. W. H., & Wardle, D. A. (2015). Quantifying multimodal trait distributions improves trait-based predictions of species abundances and functional diversity. Journal of Vegetation Science, 26(1), 45-57.

Laughlin, D. C., Joshi, C., Bodegom, P. M., Bastow, Z. A., & Fule, P. Z. (2012). A predictive model of community assembly that incorporates intraspecific trait variation. Ecology Letters, 15(11), 1291-1299.

See Also

plotCorr, plotEach, Traitspace, TraitspaceMod, trueP

Examples

1
2
3
4
5
6
7
data(spdata)
species<-spdata$species  #species column
trt<-cbind(spdata$t1,spdata$t2) #two traits
env<-spdata$env     #one env gradient
site<-spdata$site   #site information
result1<-Traitspace(species, trt, env, site)
plotComb(result1)

Traitspace documentation built on May 2, 2019, 4:10 a.m.