Set up

library(pmplots)
library(dplyr)

data <- pmplots_data_obs()

NPDE versus time

npde_time(data)
## `geom_smooth()` using formula 'y ~ x'

npde_tad(data)
## `geom_smooth()` using formula 'y ~ x'

NPDE versus PRED

npde_pred(data)
## `geom_smooth()` using formula 'y ~ x'

NPDE histogram

npde_hist(data)
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

NPDE QQ plot

npde_q(data)

NPDE versus categorical variable

npde_cat(data, x = "STUDYc", y = "NPDE")

NPDE versus continuous variables

npde_cont(data, x= "WT//Weight (kg)", y = "NPDE")
## `geom_smooth()` using formula 'y ~ x'