Learn R Programming

rosario (version 0.1.0)

temp_overlap_plot: Plot null-model results for temporal niche overlap

Description

Creates a histogram of simulated mean niche overlap values from a null model (see get_null_model()) and overlays a dashed vertical line indicating the observed mean overlap.

Usage

temp_overlap_plot(results)

Value

A ggplot2 object displaying the null distribution of overlap values with the observed overlap marked.

Arguments

results

A list object returned by get_null_model(), containing null_niche_overlap (data frame of simulated overlaps) and observed_niche_overlap (numeric observed value).

See Also

get_null_model(), temp_overlap()

Examples

Run this code
mod <- get_null_model(ex1, method = "pianka", nsim = 100)
temp_overlap_plot(mod)

Run the code above in your browser using DataLab