R/barplot.zoo.R

Defines functions boxplot.zoo barplot.zoo

Documented in barplot.zoo boxplot.zoo

barplot.zoo <- function(height, names.arg = NULL, ...)
{
  x <- coredata(height)
  if(!is.null(dim(x))) x <- t(x)
  if(is.null(names.arg)) names.arg <- index2char(index(height))
  barplot(x, names.arg = names.arg, ...)
}

boxplot.zoo <- function(x, ...) boxplot(coredata(x), ...)

Try the zoo package in your browser

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

zoo documentation built on June 8, 2023, 6:59 a.m.