Adding model equation to ggplot. Wrapper around stat_poly_eq with standard options for label
1 | rg_geom_equation(formula, elements = c("eq", "r2", "p"), sep = ", ", ...)
|
formula |
Formula, Model formula |
elements |
String or vector of strings, The parts of the model statistics that should be included in the output |
sep |
String, separator between model elements |
... |
Further parameters passed on to stat_poly_eq one of index or name. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.