R/set_equal_y_limits.R

Defines functions set_equal_y_limits

set_equal_y_limits <- function(x) {
  stopifnot(is.list(x))
  classes <- sapply(x, class)
  if(!all(apply(classes,1,function(X) length(unique(X))==1))) {
    stop("All members of the list must have the same class")
  }
  class(x) <- classes[1]
  UseMethod("set_equal_y_limits", x)
}

Try the WpProj package in your browser

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

WpProj documentation built on April 3, 2025, 10:54 p.m.