annotate_regression | R Documentation |
This function parses an lmfit object, extracts the partial correlation between the last predictor of the model and the outcome, and adds it to a ggplot object in the right hand corner. Assumes that the variables are standardized and that the predictor of interest is the last one in the model.
annotate_regression(lmfit, ggp, font_size = 10, location = "topright")
lmfit |
an linear model fit object |
ggp |
a ggplot2 object |
font_size |
integer |
location |
a string |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.