This code is a modified from this source code: https://stackoverflow.com/questions/28159936/formatting-large-currency-or-dollar-values-to-millions-billions

clean_ggplot_axis_numbers(x, prefix = NULL)

Arguments

x

A numeric.

prefix

A character. This will be the leading symbol of the final value. Example being a $ symbol.