label_flqs: A ggplot2 labeller for FLQuants

View source: R/functions.R

label_flqsR Documentation

A ggplot2 labeller for FLQuants

Description

Plots of FLQuants objects use by default facet_grid to separate the different elements. This function generates facet labels that have both the element name and the units of measurement of each, as stored in the 'units' slot of each FLQuant.

Usage

label_flqs(x, drop = c("NA", "NC", "m", "f", "z", "prop"))

Arguments

x

An object of class FLQuants

drop

Character string to be dropped from the label shen found in the *units* slot. Defaults to c("NA", "NC", "m", "z", "prop")

Details

Certain *units* are dropped from the label, as being uninformative: "NA", "NC", "m", "z", and "prop". This can be selected with the *drop* argument.

Value

A ggplot2 labeller function

Author(s)

Iago Mosqueira (EC JRC)

See Also

labeller


flr/ggplotFL documentation built on Feb. 10, 2024, 3:57 p.m.