res_cont: Plot residuals versus continuous variables

View source: R/res_cont.R

res_contR Documentation

Plot residuals versus continuous variables

Description

These are vectorized functions; see details;

Usage

res_cont(df, x, y = pm_axis_res(), xs = defx(), ys = defy(), ...)

wres_cont(df, x, y = pm_axis_wres(), xs = defx(), ys = defy(), ...)

cwres_cont(df, x, y = pm_axis_cwres(), xs = defx(), ys = defy(), ...)

cwresi_cont(df, x, y = pm_axis_cwresi(), ...)

npde_cont(df, x, y = pm_axis_npde(), ...)

Arguments

df

data frame to plot

x

character col//title for x-axis data; see col_label

y

character col//title for y-axis data; see col_label

xs

see defx

ys

see defy

...

passed to scatt and layer_hs

Details

These are vectorized functions; if either x or y are a character vector (in col//title format), a list of plots is returned. If both x and y are length 1, then a single plot object (not a list) is returned.

Value

A single plot when a single value for x and y are supplied; a list of plots of either x or y have length greater than 1.

Examples

data <- pmplots_data_obs()

wres_cont(data, x = "CRCL//Creatinine clearance")


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