cwres_time: Plot conditional weighted residuals versus time

View source: R/res_time.R

cwres_timeR Documentation

Plot conditional weighted residuals versus time

Description

Uses y_time to create the plots. Please see that help topic and details here for other arguments to customize the plot.

Usage

cwres_time(df, x = pm_axis_time(), y = pm_axis_cwres(), ...)

cwres_tafd(df, x = pm_axis_tafd(), y = pm_axis_cwres(), ...)

cwres_tad(df, x = pm_axis_tad(), y = pm_axis_cwres(), ...)

cwresi_time(df, x = pm_axis_time(), y = pm_axis_cwresi(), ...)

cwresi_tafd(df, x = pm_axis_tafd(), y = pm_axis_cwresi(), ...)

cwresi_tad(df, x = pm_axis_tad(), y = pm_axis_cwresi(), ...)

Arguments

df

data set to plot

x

x-axis data in col_label format

y

y-axis data in col_label format

...

passed to res_time and eventually to y_time

Details

Plots are generated using y_time, which then calls scatt.

By default, the time unit is assumed to be hours (hr). See the xunit argument to y_time to change the time unit.

See the xby argument to y_time for a convenient way to change the breaks for the x-axis (time).

Since this function creates a scatter plot, both the x and y columns must be numeric.

Value

A single plot.

See Also

res_time, wres_time, npde_time

Examples

df <- pmplots_data_obs()

cwresi_time(df)


metrumresearchgroup/pmplots documentation built on Oct. 15, 2024, noon