plot.jagsMANECfit: plot.jagsMANEC

Description Usage Arguments Value

View source: R/plot_jagsNECfit.R

Description

Generates a plot of a fitted jagsMANEC model, as returned by fit.jagsMANEC.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## S3 method for class 'jagsMANECfit'
plot(
  X,
  CI = TRUE,
  posterior.median = TRUE,
  median.model = FALSE,
  add.NEC = TRUE,
  add.EC10 = FALSE,
  legend.loc = "topright",
  xform = NA,
  lxform = NA,
  jitter.x = FALSE,
  jitter.y = FALSE,
  ylab = "response",
  xlab = "concentration",
  xlim = NA,
  ylim = NA,
  xticks = NA,
  xtick.rounding = 5,
  all_models = FALSE,
  ...
)

Arguments

X

the jagsNEC model fit as returned by fit.jagsNEC.

CI

a logical value indicating if confidence intervals on the model fit should be plotted, calculated as the upper and lower bounds of the individual predicted values from all posterior samples

posterior.median

a logical value indicating if the posterior median of the model fit should be plotted, calculated as the median of the individual predicted values from all posterior samples

median.model

a logical value indicating if the fitted model calculated from the median estimates of the NEC, top and beta parameters should be plotted. This is the fitted model as shown in Fox 2010.

add.NEC

a logical value indicating if the estimated NEC value and 95% credible intervals should be added to the plot.

add.EC10

a logical value indicating if an estimated EC10 value and 95% credible intervals should be added to the plot.

legend.loc

a vector indicating the location of the NEC or EC10 legend, as per a call to legend.

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 annoted NEC/EC10 values.

jitter.x

a logical value indicating if the x data points on the plot should be jittered.

jitter.y

a logical value indicating if the y data points on the plot should be jittered.

ylab

a character vector to use for the y-axis label

xlab

a character vector to use for the x-axis label

xlim

a numeric vector of length two to use for the lower and uper limits of the x-axis range

xticks

a numeric vector indicating where to place the tick marks of the x-axis

xtick.rounding

the rounding to be applied for manually specifying xticks, when data are back transformed via lxform.

all_models

a logical, indicating if all models should be plotted individually, or if the model averaged plot should be returned.

Value

a plot of the fitted model


AIMS/NEC-estimation documentation built on Dec. 7, 2020, 10:44 a.m.