Skip to contents

Helper enum of predefined transformations of axes Note that the transformations will be translated internally into ggplot2 transformations. ggplot2 includes more transformations than what is available in this enum.

Usage

Scaling

Format

An object of class list of length 9.

Examples

# Continuous linear/identity scale
Scaling$identity
#> [1] "identity"
Scaling$lin
#> [1] "lin"

# Continuous log10 scale
Scaling$log
#> [1] "log"

# Continuous natural logarithm (ln) scale (base is *e*)
Scaling$ln
#> [1] "ln"

# Discrete scale for categrical data such as boxplot and tornado plot data
Scaling$discrete
#> [1] "discrete"

# Reverse continuous linear scale to switch end and beginning of linear scale
Scaling$reverse
#> [1] "reverse"

# Continusous square root scale
Scaling$sqrt
#> [1] "sqrt"

# Time scale for POSIXlt or POSIXct data
Scaling$time
#> [1] "time"

# Date scale for POSIXlt or POSIXct data
Scaling$date
#> [1] "date"