Skip to contents

These functions extend the scales package and allow formatting labels.

Usage

ggeo_label_sci_10(x)

ggeo_label_pyramid(x)

ggeo_label_abs_percent(x)

Arguments

x

Number to format

Value

A formatted string for the scales

Details

ggeo_label_sci_10() is used to format numbers with a clean scientific format using a multiplier and not the ugly notation using the letter e.

ggeo_label_pyramid() is used for population pyramids with absolute numbers. It formats the absolute number using ggeo_label_sci_10().

ggeo_label_abs_percent() is also used for population pyramids but with relative numbers (percents). It uses scales::percent() and absolute numbers.