Set up

A default plot

dv_pred(data)

Customize the axis label

dv_ipred(data) + labs(x = "Predicted concentration (mg/L)")

Add Greek symbols to an axis label

There are a couple of ways to do this. The easiest is to have the latex2exp package installed and write the TeX right in the label.

dv_pred(data, x = "IPRED//Predicted concentration ($\\mu$g/mL)")
## Loading required namespace: latex2exp

Otherwise, you can trigger R plotmath by putting !! at the start of the column label

dv_pred(data, x = "IPRED//!!'Predicted concentration (' * mu * 'g/mL)'")

Add a run number or other annotation to the plot

dv_pred(data) + labs(subtitle = "Run 1001")

Adopt the pmplots look and feel

At some point, you might have to create a plot outside of pmplots, but you still want to adopt the pmplots look and feel.

Use these helpers to style the plot