powered by
This function provides a simple function for plotting data using power transformations.
# S3 method for powerTransform plot(x, z = NULL, round = TRUE, plot = pairs, ...)
name of the power transformation object
Additional variables of the same length as those used to get the transformation to be plotted, default is NULL.
NULL
If TRUE, the default, use rounded transforms, if FALSE use the MLEs.
TRUE
FALSE
Plotting method. Default is pairs. Another possible choice is scatterplot.matrix from the car package.
pairs
scatterplot.matrix
car
Optional arguments passed to the plotting method
None. Produces a graph as a side-effect.
The data used to estimate transformations using powerTransform are plotted in the transformed scale.
powerTransform
Weisberg, S. (2014) Applied Linear Regression, Fourth Edition, Wiley.
Fox, J. and Weisberg, S. (2011) An R Companion to Applied Linear Regression, Second Edition, Sage.
summary(a3 <- powerTransform(cbind(len, adt, trks, shld, sigs1) ~ 1, Highway1)) with(Highway1, plot(a3, z=rate, col=as.numeric(htype)))
Run the code above in your browser using DataLab