This is a function for nice scale transformations for ggplot2, including when pow < 0.

power_trans(pow, nb)

Arguments

pow

Exponent of power transformation, scalar.

nb

Number of desired breaks (approximate), scalar.

Value

A scale transformation object for plotting in ggplot.

Details

This function is for power transformations (i.e. raising to a power and inverse) This is useful for visualizing generalized means.