annotate_regression: annotate_regression

View source: R/represearch.R

annotate_regressionR Documentation

annotate_regression

Description

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.

Usage

annotate_regression(lmfit, ggp, font_size = 10, location = "topright")

Arguments

lmfit

an linear model fit object

ggp

a ggplot2 object

font_size

integer

location

a string


philipphoman/represearch documentation built on July 27, 2023, 10:23 a.m.