Get a single graphic of NPDE or CWRES diagnostics versus TIME,
TAD and PRED. Output can be in either long or compact format.
npde_scatter(
df,
xname = "value",
unit_time = "hours",
unit_tad = "hours",
xby_time = NULL,
xby_tad = NULL,
tag_levels = NULL,
compact = FALSE
)
cwres_scatter(
df,
xname = "value",
unit_time = "hours",
unit_tad = "hours",
xby_time = NULL,
xby_tad = NULL,
tag_levels = NULL,
compact = FALSE
)a data frame to plot.
passed to npde_pred().
passed to npde_tad() as xunit.
passed to npde_time() as xunit.
passed to npde_time() as xby.
passed to npde_tad() as xby.
passed to patchwork::plot_annotation().
use compact = TRUE to get a more compact display; see
Examples.
A single graphic with three panels (NPDE or CWRES versus TIME, TAD
and PRED) as a patchwork object. The default behavior is to create a
graphic with three panels in three rows, filling a portrait page.
Use compact = TRUE for a single graphic in two rows, with the TIME
plot on the top and the TAD and PRED plots on the bottom.
data <- pmplots_data_obs()
npde_scatter(data)
#> `geom_smooth()` using formula = 'y ~ x'
#> `geom_smooth()` using formula = 'y ~ x'
#> `geom_smooth()` using formula = 'y ~ x'
npde_scatter(data, compact = TRUE)
#> `geom_smooth()` using formula = 'y ~ x'
#> `geom_smooth()` using formula = 'y ~ x'
#> `geom_smooth()` using formula = 'y ~ x'