get_label_formula: Get formula for calculating position of value labels

View source: R/rub_plot.R

get_label_formulaR Documentation

Get formula for calculating position of value labels

Description

Get formula for calculating position of value labels

Usage

get_label_formula(label_var, is_percentage = FALSE)

Arguments

label_var

The name of the variable requiring value labels

is_percentage

Optional boolean indicating whether the value label is expressed in absolute numbers or as a percentage, defaults to false

Value

A defused expression for calculating the position of the y-label

Examples

## Not run: 
get_label_formula(y_var = cyl, label_reverse = TRUE, is_percentage = FALSE)

## End(Not run)

RichardMeyer-Eppler/RUBer documentation built on June 2, 2022, 7:24 p.m.