seesaw_sugar: ggplot sugar for rarity plots

View source: R/balance.R

seesaw_sugarR Documentation

ggplot sugar for rarity plots

Description

ggplot sugar for rarity plots

Usage

seesaw_sugar(title = NULL, l, unicode_in_title = TRUE, ...)

Arguments

title

Character string, or NULL.

l

Scaling exponent for the mean, can be any real number.

unicode_in_title

Logical, include unicode ell and its value.

...

Additional arguments passed to other functions.

Value

ggplot objects to add to rarity plot

Examples

p1 <- rarity_plot(1:10, l = 0)
p1
p1 + seesaw_sugar(title = "Hill-Shannon diversity"
  , l = 0)


mikeroswell/MeanRarity documentation built on May 5, 2024, 4:50 p.m.