Helper function for plots

create_plot_df(object, x = "age", group_by = "id")

Arguments

object

model or fit

x

x-axis variable name

group_by

grouping variable name (use NULL for no grouping)

Value

a data frame