plot.bestNormalize: Transformation plotting

View source: R/plots.R

plot.bestNormalizeR Documentation

Transformation plotting

Description

Plots transformation functions for objects produced by the bestNormalize package

Usage

## S3 method for class 'bestNormalize'
plot(
  x,
  inverse = FALSE,
  bounds = NULL,
  cols = NULL,
  methods = NULL,
  leg_loc = "top",
  ...
)

## S3 method for class 'orderNorm'
plot(x, inverse = FALSE, bounds = NULL, ...)

## S3 method for class 'boxcox'
plot(x, inverse = FALSE, bounds = NULL, ...)

## S3 method for class 'yeojohnson'
plot(x, inverse = FALSE, bounds = NULL, ...)

## S3 method for class 'lambert'
plot(x, inverse = FALSE, bounds = NULL, ...)

Arguments

x

a fitted transformation

inverse

if TRUE, plots the inverse transformation

bounds

a vector of bounds to plot for the transformation

cols

a vector of colors to use for the transforms (see details)

methods

a vector of transformations to plot

leg_loc

the location of the legend on the plot

...

further parameters to be passed to plot and lines

Details

The plots produced by the individual transformations are simply plots of the original values by the newly transformed values, with a line denoting where transformations would take place for new data.

For the bestNormalize object, this plots each of the possible transformations run by the original call to bestNormalize. The first argument in the "cols" parameter refers to the color of the chosen transformation.


petersonR/bestNormalize documentation built on March 15, 2024, 9:29 a.m.