Data underlying a bayesnechurdlefit plot

# S3 method for class 'bayesnechurdlefit'
ggbnec_data(
  x,
  add_nec = FALSE,
  add_ecx = FALSE,
  xform = NULL,
  ...,
  which = "combined",
  resolution = 1000,
  x_range = NA,
  x_scale = c("recorded", "fitted")
)

Arguments

x

An object of class bayesnechurdlefit.

add_nec, add_ecx

FALSE, the default. The data hold no estimates, so TRUE is refused: read the estimates with nec or ecx and which, or draw them with autoplot().

xform

NULL, the default, or a function to apply to the predictor on the scale x_scale selects. With an inline predictor transformation, a function on the default recorded scale gives a warning.

...

Not used. dpar is refused, so select a curve with which, and any other argument is refused as well.

which

Which curve(s) to return. See plot.

resolution

The number of unique predictor values.

x_range

A range of predictor values.

x_scale

"recorded" (the default) or "fitted". The fitted option returns the predictor on the scale transformed inside crf(), with breaks in attribute "x_axis" labelled in recorded units.

Value

A list of two data.frames, curve and raw, each carrying a panel column.