5  dv-pred-ipred

This function will split your dataset up in “chunks” according to the columns named in facets. Pass the number of id_per_plot. The return is a list of plots covering all unique values in facets.

In this example, we’ll just plot 9 subjects in a single plot

dd1 <- filter(df, ID <= 9)

Please see the ?dv_pred_ipred help file as there are many arguments which allow you to customize the output

dv_pred_ipred(
  dd1, 
  facets = "ID", 
  id_per_plot = 9
)
$`1`

Some arguments to note

There are also a whole series of arguments for configuring the points and lines on the plot for DV, PRED and IPRED.