Ladder of powers transformation on bivariate data with three-point summary plot
Source:R/eda_bipow.R
eda_bipow.Rd
Re-expresses a vector on the ladder of powers.
Requires eda_3pt()
function.
Usage
eda_bipow(dat, x, y, p = c(-1, 0, 0.5, 1, 2), tukey = TRUE, ...)
Arguments
- dat
Data frame
- x
Column name assigned the x axis
- y
Column name assigned the y axis
- p
Vector of powers
- tukey
If set to TRUE, then adopt Tukey's power transformation. If FALSE, adopt Box-Cox transformation.
- ...
Other parameters passed to the graphics::plot function.
Details
Generates a matrix of scatter plots and boxplots of various re-expressions of both x and y values. The 3-point summary and associated half-slopes are also plotted (this function makes use of the eda_3pt function). The values are re-expressed using either the Tukey power transformation (default) or the Box-Cox transformation (see eda_re for more information on these transformation techniques). Axes labels are omitted to reduce plot clutter.