R/utils.R

Defines functions axis_marks

Documented in axis_marks

#' Define the vector of tick marks for the axis of a plot
#'
#'
#'
#' @param lx integer scalar, representing the length of the x or y vector
#'
#'
#' @keywords internal
#'


axis_marks <- function(lx) {
    i <- 0
    while(T){
        if(lx/10^i <=100) break
        i <- i+1
    }
    return(seq(0, lx, by=5*10^i))
}

Try the ConvergenceClubs package in your browser

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

ConvergenceClubs documentation built on June 14, 2022, 1:06 a.m.