R/scale_tight.R

Defines functions tight scale_y_tight scale_x_tight

#' @export
scale_x_tight <- function(...) {
  ggplot2::scale_x_continuous(..., expand = tight())
}

#' @export
scale_y_tight <- function(...) {
  ggplot2::scale_y_continuous(..., expand = tight())
}

tight <- function() {
  ggplot2::expand_scale(mult = c(0, .05))
}
thomas-neitmann/scalesextra documentation built on May 12, 2020, 10:40 a.m.