- model
object from lm
, nlme
, lme4
, or lmerTest
- data
data.frame
. If the function is unable to extract data frame from the object, then you may need to pass it directly
- graph_label_name
vector of length 3 or function. Vector should be passed in the form of c(response_var, predict_var1, predict_var2)
. Function should be passed as a switch function that return the label based on the name passed (e.g., a switch function)
- cateogrical_var
list. Specify the upper bound and lower bound directly instead of using ± 1 SD from the mean. Passed in the form of list(var_name1 = c(upper_bound1, lower_bound1),var_name2 = c(upper_bound2, lower_bound2))
- y_lim
the plot's upper and lower limit for the y-axis. Length of 2. Example: c(lower_limit, upper_limit)
- plot_color
default if FALSE
. Set to TRUE
if you want to plot in color