R/plot.runJagsWrapper.R

Defines functions `plot.runJagsWrapper`

`plot.runJagsWrapper` <-
function(x, theoretical=FALSE, ...){
  
  if (class(x) != "runJagsWrapper")
    stop("'x' must be of class 'runJagsWrapper'")

  if (theoretical==TRUE) {
    a.plot <- plotFitted(x$seg.ratios, x$summary, theoretical=TRUE,
                         model=x$model, ...)
  } else {
    a.plot <- plotFitted(x$seg.ratios, x$summary, ...)
  }
  print(a.plot)
  return(a.plot)
}

Try the polySegratioMM package in your browser

Any scripts or data that you put into this service are public.

polySegratioMM documentation built on May 2, 2019, 9:49 a.m.