format_label: Format the labels for a measure on a quik plot.

Description Usage Arguments

View source: R/plot_formatting.R

Description

This will round the data to the measure unit, add a prefix, and add a suffix

Usage

1
2
format_label(measure, currency, measure_unit,
                       measure_decimal, parenthesis)

Arguments

measure

The column name of the measure

currency

A string, usually $

measure_unit

A string. Can be %, K, or M

measure_decimal

An integer. The number of decimal places to show.

parenthesis

A logical. Should parenthesis be added?


brascoball/ggquik documentation built on Feb. 14, 2021, 5:17 p.m.