res_hist_q: Create a display of residual histograms and quantile-quantile...

res_hist_qR Documentation

Create a display of residual histograms and quantile-quantile plots

Description

Get a single graphic showing NPDE or CWRES histogram and quantile-quantile plots.

Usage

npde_hist_q(df, ncol = 1, tag_levels = NULL)

cwres_hist_q(df, ncol = 1, tag_levels = NULL)

Arguments

df

a data frame to plot.

ncol

passed to pm_grid().

tag_levels

passed to patchwork::plot_annotation().

Details

The default value for ncol (1) means the two plots will be arranged in a single column, with the histogram on the top and quantile-quantile plot on the bottom. Using ncol=2 will return an graphic with the plots side by side.

Value

A single graphic is returned, with a NPDE or CWRES histogram and quantile-quantile plot arranged in an object using patchwork::plot_annotation().

Examples

data <- pmplots_data_obs()
npde_hist_q(data, tag_levels = "a")
npde_hist_q(data, tag_levels = "a", ncol = 2)
cwres_hist_q(data)


metrumresearchgroup/pmplots documentation built on Dec. 24, 2024, 7:26 p.m.