Helper function for plots
create_plot_df(object, x = "age", group_by = "id")
object
model or fit
x
x-axis variable name
group_by
grouping variable name (use NULL for no grouping)
NULL
a data frame