R/plot.fit.bayesx.R

Defines functions plot.fit.bayesx

plot.fit.bayesx <-
function(x, ...)
{
  if(length(x) >= 1L) {
    if(any(grepl("bayesx", class(x[[1L]]))))
      x <- list(x)
    nx <- length(x)
    pval <- list()
    for(i in 1L:nx)
      pval[[i]] <- list(effects = x[[i]])
    class(pval) <- "bayesx"
    plot(pval, ...)
  } else stop("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, 9:11 a.m.