R/plot.mdf.R

Defines functions plot.mdf

Documented in plot.mdf

plot.mdf <-function(x,select=NULL,plot.type="IRF",...){
  null.plot <- is.null(plot.type)
  plottype1 <- plot.type=="IRF"
  plottype2 <- plot.type=="scale"
  if (null.plot) return("Please provide a type of plot. Available options are IRF plot and scale plot.")
  if (plottype1) p <- plot_irf(x=x,select=select,...)
  if (plottype2) p <- plot_scale(x=x,select=select,...)
  return(p)
}
SpyrosBalafas/mudfold documentation built on May 19, 2019, 2:53 a.m.