Skip to contents

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)

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).

Value

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

Examples

mod <- get_null_model(ex1, method = "pianka", nsim = 100)
temp_overlap_plot(mod)
#> `stat_bin()` using `bins = 30`. Pick better value `binwidth`.