plot {bayesnec} | R Documentation |
Generates a plot for objects fitted by bnec
Description
Generates a plot for objects fitted by bnec
.
x
should be of class bayesnecfit
or
bayesmanecfit
.
Usage
## S3 method for class 'bayesnecfit'
plot(
x,
...,
CI = TRUE,
add_nec = TRUE,
position_legend = "topright",
add_ec10 = FALSE,
xform = identity,
lxform = identity,
jitter_x = FALSE,
jitter_y = FALSE,
ylab = "Response",
xlab = "Predictor",
xticks = NA
)
## S3 method for class 'bayesmanecfit'
plot(
x,
...,
CI = TRUE,
add_nec = TRUE,
position_legend = "topright",
add_ec10 = FALSE,
xform = identity,
lxform = identity,
jitter_x = FALSE,
jitter_y = FALSE,
ylab = "Response",
xlab = "Predictor",
xticks = NA,
all_models = FALSE
)
Arguments
x |
An object of class |
... |
Additional arguments to |
CI |
A |
add_nec |
A |
position_legend |
A |
add_ec10 |
A |
xform |
A function to be applied as a transformation of the x data. |
lxform |
A function to be applied as a transformation only to axis labels and the annotated NEC / EC10 values. |
jitter_x |
A |
jitter_y |
A |
ylab |
A |
xlab |
A |
xticks |
A numeric vector indicate where to place the tick marks of the x-axis. |
all_models |
A |
Value
A plot
of the fitted model.
Examples
library(bayesnec)
nec4param <- pull_out(manec_example, "nec4param")
# plot single models (bayesnecfit)
plot(nec4param)
plot(nec4param, add_nec = FALSE)
plot(nec4param, add_ec10 = TRUE)
# plot model averaged predictions (bayesmanecfit)
plot(manec_example)
# plot all panels together
plot(manec_example, add_ec10 = TRUE, all_models = TRUE)