taxa_label: Create a label for a species

View source: R/taxa_label.R

taxa_labelR Documentation

Create a label for a species

Description

Default is 'Common (Scientific). Possibly including ⁠n = ⁠ if records is supplied. Formatted for either ggplot (default what_for =plot) or markdown.

Usage

taxa_label(common = NULL, taxa = NULL, records = NULL, what_for = "plot")

Arguments

common

Character. Common name for species

taxa

Character. Scientific name for species

records

Numeric. Optional number of records.

what_for

"plot" or something else. If plot will be formatted for plotting otherwise formatted for markdown.

Examples

cat(taxa_label("Black-chinned Honeyeater", "Melithreptus gularis"))
cat(taxa_label(taxa = "Melithreptus gularis"))
cat(taxa_label("Black-chinned Honeyeater", records = 3))
cat(taxa_label("Black-chinned Honeyeater", "Melithreptus gularis", what_for = "md"))
cat(taxa_label("Black-chinned Honeyeater", "Melithreptus gularis", what_for = "md", records = 3))

Acanthiza/envFunc documentation built on Aug. 19, 2024, 4:50 a.m.