gg_boxcox | R Documentation |
A forked version of MASS::boxcox using ggplot2
gg_boxcox(object, ...)
object |
a formula or fitted model object. Currently only lm and aov objects are handled. |
... |
additional parameters to be used in the model fitting. |
lambda |
vector of values of lambda – default (-2, 2) in steps of 0.1 |
interp |
logical which controls whether spline interpolation is used. Default to TRUE if plotting with lambda of length less than 100. |
eps |
Tolerance for lambda = 0; defaults to 0.02 |
xlab |
defaults to "lambda" |
ylab |
defaults to "log-Likelihood" |
a ggplot object
boxcox
gg_boxcox(Volume ~ log(Height) + log(Girth), data = trees,
lambda = seq(-0.25, 0.25, length = 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.