Partial residual regression plot using ggpubr for display and visreg for partial residual calculation

prplot(
  mdl,
  xvariable,
  byvariable,
  titlestring = "",
  ystring = "",
  addpoints = 0,
  palette = "npg",
  colorvar = "",
  extradata = NULL
)

Arguments

mdl

input fitted model

xvariable

a model term

byvariable

a model term interacting with the xvariable

titlestring

string for title

ystring

string for title

addpoints

continuous value greater than zero

palette

string

colorvar

string

extradata

dataframe with additional information to be rendered

Value

the quantile transformed vector