View source: R/CreateTransformedQQPlot.R
Uses the Box-Cox generated lambda to fit and display the QQ-plot for the newly fitted model. Note that a manual lambda is input.
1 2 3 4 5 6 7 8 9 | CreateTransformedQQPlot(
fit,
iv,
dv = "density",
data,
lambda = 0.9,
dir = "./",
save.plot = TRUE
)
|
fit |
lm object. Model fit to the data. No default. |
iv |
Character vector. Independent variables. No default. |
dv |
Character vector of length 1. Dependent variable. Defaults to "density" |
data |
data.frame. Data that the model was fit to. No default. |
lambda |
Numeric vector of length 1. Lambda to transform the dependent variable in fit. Default to 0.9. |
dir |
Character vector of lenght 1. Directory in which to store the plot. Ignored if save.plot is FALSE. Defaults to "." |
save.plot |
Logical vector of length 1. If TRUE then the plot is saved to disk. Defaults to TRUE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.