Skip to contents

This helper builds a compact ggplot2 scale preview for label and scale functions.

Usage

demo_scale(x, ...)

Arguments

x

A vector of data

...

Other arguments pass to scale functions

Value

A ggplot object demonstrating the supplied scale settings.

Examples

demo_scale(0:10, labels = scales::label_number())