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

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"))
#> "Black-chinned Honeyeater" ~ italic("Melithreptus gularis")
cat(taxa_label(taxa = "Melithreptus gularis"))
#> ~italic("Melithreptus gularis")
cat(taxa_label("Black-chinned Honeyeater", records = 3))
#> "Black-chinned Honeyeater" * ", n = 3"
cat(taxa_label("Black-chinned Honeyeater", "Melithreptus gularis", what_for = "md"))
#> Black-chinned Honeyeater (_Melithreptus gularis_)
cat(taxa_label("Black-chinned Honeyeater", "Melithreptus gularis", what_for = "md", records = 3))
#> Black-chinned Honeyeater (_Melithreptus gularis_), n = 3