hlabs | R Documentation |
Front-end to ggplot2 labs Function
hlabs(x, y, html = FALSE)
x |
a single variable name, unquoted |
y |
a single variable name, unquoted |
html |
set to |
Runs x
, y
, or both through hlab()
and passes the constructed labels to the ggplot2::labs function to specify x- and y-axis labels specially formatted for units of measurement
result of ggplot2::labs()
Frank Harrell
# Name the current dataset d, or specify a name with
# options(curr_ds='...') or run `extractlabs`, then
# ggplot(d, aes(x,y)) + geom_point() + hlabs(x,y)
# to specify only the x-axis label use hlabs(x), or to
# specify only the y-axis label use hlabs(y=...)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.