plot_single: plot_single

Description Usage Arguments Examples

Description

plot_single

Usage

1

Arguments

res

object of class diversity; output of functions subdiv(), metadiv(), or any of the specific subcommunity- or metacommunity-level diversity functions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
pop1 <- data.frame(a = c(1,3), b = c(1,1))
row.names(pop1) <- paste0("sp", 1:2)
pop1 <- pop1/sum(pop1)
meta1 <- rdiversity::metacommunity(pop1)
qs <- 0

b <- rdiversity::raw_beta(meta1)
sc <- rdiversity::subdiv(b, qs)
ggplot(sc)
plot_single(sc)

mysteryduck/ggrdiversity documentation built on May 9, 2019, 2:59 p.m.