ggbnec_data {bayesnec}R Documentation

Creates the data.frame for plotting with autoplot.

Description

Creates the data.frame for plotting with autoplot.

Usage

ggbnec_data(
  x,
  add_nec = TRUE,
  add_ecx = FALSE,
  force_x = FALSE,
  xform = NA,
  ...
)

Arguments

x

An object of class bayesnecfit or bayesmanecfit, as returned by function bnec.

add_nec

Should NEC values be added to the plot? Defaults to TRUE.

add_ecx

Should ECx values be added to the plot? Defaults to FALSE.

force_x

A logical value indicating if the argument xform should be forced on the predictor values. This is useful when the user transforms the predictor beforehand (e.g. when using a non-standard base function).

xform

A function to apply to the returned estimated concentration values.

...

Additional arguments to be passed to ecx. By default, function ecx returns EC10.

Value

A data.frame.

Examples


library(bayesnec)
options(mc.cores = 2)
data(manec_example)

ggbnec_data(manec_example)
ggbnec_data(manec_example, add_ecx = TRUE, ecx_val = 50)



[Package bayesnec version 2.0.2.5 Index]