View source: R/plot_r2_Function.R
plot.R2 | R Documentation |
Visualize standardized effect sizes and model R squared
## S3 method for class 'R2'
plot(
x,
y = NULL,
txtsize = 10,
maxcov = 3,
r2labs = NULL,
r2mthd = "sgv",
cor = TRUE,
...
)
x |
An R2 object from the r2beta function. |
y |
An R2 object from the r2beta function. |
txtsize |
The text size of the axis labels. |
maxcov |
Maximum number of covariates to include in the semi-partial plots. |
r2labs |
a character vector containing labels for the models. The labels are printed as subscripts on a covariance model matrix. |
r2mthd |
The method used to compute R2 |
cor |
An argument to be passed to the r2dt function. Only relevant if comparing two R2 objects. |
... |
Arguments to be passed to plot |
A visual representation of the model and semi-partial R squared from the r2 object provided.
library(nlme)
library(r2glmm)
data(Orthodont)
# Linear mixed model
lmemod = lme(distance ~ age*Sex, random = ~1|Subject, data = Orthodont)
r2 = r2beta(model=lmemod,partial=TRUE,method='sgv')
plot(x=r2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.