plot_jagsNEC: plot.jagsNEC

Description Usage Arguments Value

View source: R/plot_jagsNEC.R

Description

Generates a plot of a fitted jags NEC model, as returned by fit.jagsNEC.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
plot_jagsNEC(
  X,
  CI = TRUE,
  posterior.median = TRUE,
  median.model = FALSE,
  add.NEC = TRUE,
  xform = NA,
  jitter.x = FALSE,
  jitter.y = FALSE,
  y.lab = "response",
  x.lab = "concentration",
  log.x = "",
  ...
)

Arguments

X

the jags NEC 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 values and 95% credible intervals should be added to the plot.

xform

a function to be applied as a transformation of the x data.

y.lab

A character string containing a label for the y-axis label

x.lab

A character string containing a label for the x-axis

log.x

A character string indicating if the x-axis should be plotted on a log scale. Leave as the default for a plot without a log x-axis, or "x" will provide a plot with the x-axis on the log scale.

x.jitter

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

y.jitter

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

Value

a plot of the fitted model


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