gof_identity: A generic function for identity plots

View source: R/gof.R

gof_identityR Documentation

A generic function for identity plots

Description

Identity plots have symmetric x- and y-axes, a reference line at y=x, and a fixed aspect ration. Typical examples are DV vs. PRED and DV vs. IPRED.

Usage

gof_identity(
  data,
  x,
  y,
  labels = gof_labels(),
  baseplot = gof_baseplot,
  log_xy = F,
  ...
)

Arguments

data

A data.frame.

x, y

Numeric vectors, evaulated within data.

labels

A named list of labels.

baseplot

A function that returns a ggplot object to use as the base.

log_xy

If TRUE then log-scale will be used for both x- and y-axes.

...

Additional arguments, passed to baseplot.

Value

A ggplot object.


certara/ggcertara documentation built on Feb. 28, 2024, 5:01 a.m.