Learn R Programming

comclim (version 0.9.0)

plot.CommunityClimateStatistics: Draws community climate diagram.

Description

Produces either a deviations plot or a community climate diagram. The deviations plot compares null distributions (black) and observed values (red) for volume, lag, and lag along each axis, along with the interquartile range of null values. The community climate diagram shows the location of the community (red points) and null communities (black points) in climate space at t1, and compares it to the observed climate at t2 (open black point). The climate volume for each is shown as a circle, and the climate lag is shown as a vector connecting the inferred climate at t1 to the observed climate at t2.

Usage

## S3 method for class 'CommunityClimateStatistics':
plot(x, deviations = FALSE, axisnames = NULL, 
  nnull = 10, cex.axis = 0.7, cex.nullpoints = 0.3, 
  cex.obspoints = 0.5, cex.names = 1.5, ...)

Arguments

Value

None; used for the side-effect of producing a plot.

Examples

Run this code
community_richness_5 <- generatedemodata()
result_community <- communityclimate(community_richness_5,
  climateaxes=c("ClimateAxis1","ClimateAxis2","ClimateAxis3"),
	numreplicates=100)

# deviations plot
plot(result_community,deviations=TRUE)

# community climate diagram
plot(result_community,deviations=FALSE)

Run the code above in your browser using DataLab