Generates a plot of a fitted bayesnecfit
model, as returned by
bnec
.
# S3 method for bayesnecfit
plot(
x,
...,
CI = TRUE,
add_nec = TRUE,
position_legend = "topright",
add_ec10 = FALSE,
xform = NA,
lxform = NA,
force_x = FALSE,
jitter_x = FALSE,
jitter_y = FALSE,
ylab = "Response",
xlab = "Predictor",
xticks = NA
)
An object of class bayesnecfit
as returned by
bnec
.
Additional arguments to plot
.
A logical
value indicating if credibility
intervals on the model fit should be plotted, calculated as the upper and
lower bounds of the individual predicted values from all posterior samples.
A logical
value indicating if the
estimated NEC value and 95% credible intervals should be added to the plot.
A numeric
vector indicating the
location of the NEC or EC10 legend, as per a call to legend.
A logical
value indicating if an
estimated EC10 value and 95% credible intervals should be added to the plot.
A function to be applied as a transformation of the x data.
A function to be applied as a transformation only to axis labels and the annotated NEC / EC10 values.
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).
A logical
value indicating if the x
data points on the plot should be jittered.
A logical
value indicating if the y
data points on the plot should be jittered.
A character
vector to use for the y-axis
label.
A character
vector to use for the x-axis
label.
A numeric vector indicate where to place the tick marks of the x-axis.
a plot of the fitted model