R/pos_stack_y.R

Defines functions pos_stack_y

Documented in pos_stack_y

#' Title
#'
#' @inheritParams pos_wrap
#'
#' @return
#' @export
#'
#' @examples
pos_stack_y <- function(y0 = 0,
                   n = 5,
                   ncol = 3,
                   height = 1){

  (0:(n-1) %/% ncol)*height + y0

}
EvaMaeRey/ggstamp documentation built on June 30, 2022, 11 p.m.