Histograms of residuals or NPDE
res_hist(df, ..., x = pm_axis_res(), xs = defx())
wres_hist(df, ..., x = pm_axis_wres(), y = "..density..")
cwres_hist(df, ..., x = pm_axis_cwres())
cwresi_hist(df, x = pm_axis_cwresi(), ...)
npde_hist(df, ..., x = pm_axis("npde"))
A single plot.
df <- pmplots_data_obs()
cwres_hist(df)
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.