Plots the mean connectivity (density) of each edge type, with a dashed reference line at the overall network density.
Arguments
- RM
A tibble of Ringbauer measures, as returned by
get_ringbauer_measures().- show_sign
Logical. If
TRUE, colour points by significance instead of by within/between-group edge type.- filter_sign
Logical. If
TRUE, fade out non-significant edges.- sig_level
Significance threshold applied to the adjusted p-values.
- ci
Logical. If
TRUE, add 95% CI error bars for the proportions (requireslwranduprcolumns inRM).
Examples
get_ringbauer_measures(example_network, "site") |> plot_homophily()
#> Warning: There was 1 warning in `dplyr::mutate()`.
#> ℹ In argument: `prop_test = purrr::map2(...)`.
#> Caused by warning in `stats::prop.test()`:
#> ! Chi-squared approximation may be incorrect