power_trans | R Documentation |
This is a function for nice scale transformations for ggplot2
,
including when pow < 0
.
power_trans(pow, nb)
pow |
Exponent of power transformation, scalar. |
nb |
Number of desired breaks (approximate), scalar. |
This function is for power transformations (i.e. raising to a power and inverse) This is useful for visualizing generalized means.
A scale transformation object for plotting in ggplot.
trans_new
, trans_breaks
,
pfun
, ipfun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.