Rsq | R Documentation |
Produces a math-mode formatted string for R-squared.
Rsq(R, fmt = "$R^2 = %6.4f$", adj = FALSE)
R |
The R-squared value |
fmt |
A formatting string for LaTeX |
adj |
If TRUE appends 'adjusted ' to the format string |
A string that will be correctly formatted by LaTeX
J Curran
Sweave
r = 0.99 Rsq(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.