Format a parameter string for plotting

pr_relabel(s, style = "ggplot", named = FALSE)

Arguments

s

A string for reformatting

style

The style of plotting the string will be used for

named

Should the output be an unnamed (FALSE) or named (TRUE) vector? Only available for style = "simple" and style = "plotly"

Value

A reformatted expression call (ggplot)

Examples

pr_relabel("Chla_mgm3", style = "ggplot")
#> paste("Chlorophyll 𝑎 (mg m"^-3, ")")