R/ctbarplot.R

Defines functions ctbarplot

#'Plot bar graph
#'
#'You can either use the electric data that comes with the package or generate your own
#'
#'@param x=cost numeric vector (could use package data electricdata$cost)
#'@keywords ctbarplot
#'@export
#'@examples
#'ctbarplot()


ctbarplot <- function(x){
  barplot(x,
          main = 'Cost Function of Electricity Producers (1955)',
          xlab = 'Cost of fuel',
          horiz = TRUE)

}
AnthonyTheOracle/ctapply documentation built on April 30, 2022, 6:17 p.m.