power_trans: Power scale transformation

View source: R/balance.R

power_transR Documentation

Power scale transformation

Description

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

Usage

power_trans(pow, nb)

Arguments

pow

Exponent of power transformation, scalar.

nb

Number of desired breaks (approximate), scalar.

Details

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

Value

A scale transformation object for plotting in ggplot.

See Also

trans_new, trans_breaks, pfun, ipfun


mikeroswell/MeanRarity documentation built on May 5, 2024, 4:50 p.m.