R/coeffun.R

Defines functions coeffun

coeffun <- function(x, args, diagnostics)
{
  if(is.null(x)) {
    warning("there is nothing to plot!")
    return(invisible(NULL))	
  }		
  args$var <- FALSE
  if(diagnostics == 2) {
    args$var <- TRUE
    args$x <- attr(x, "variance.sample")
  } else args$x <- attr(x, "sample")
  if(!is.null(args$x)) {
    args$selected <- attr(x, "specs")$label
    do.call("plotsamples", args)
  } else warning("there is nothing to plot!")

  return(invisible(NULL))
}

Try the R2BayesX package in your browser

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

R2BayesX documentation built on Oct. 20, 2023, 3:01 p.m.