R/boa.menu.plotdesc.R

"boa.menu.plotdesc" <-
function()
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
{
   mtitle <- "\nDESCRIPTIVE PLOT MENU\n---------------------"
   choices <- c("Back",
                "-----------------+",
                "Autocorrelations |",
                "Density          |",
                "Running Mean     |",
                "Trace            |",
                "Options...       |",
                "-----------------+")
   idx <- 1
   while(idx > 0) {
      idx <- menu(choices, title = mtitle)
      switch(idx,
         "1" = idx <- -1,
         "2" = NULL,
         "3" = boa.plot("acf"),
         "4" = boa.plot("density"),
         "5" = boa.plot("history"),
         "6" = boa.plot("trace"),
         "7" = boa.menu.setpar(c("Descriptive Plot", "Plot")),
         "8" = NULL
      )
   }

   return(abs(idx))
}

Try the boa package in your browser

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

boa documentation built on May 1, 2019, 9:12 p.m.