R/n_fun.R

Defines functions n_fun

Documented in n_fun

#' n values in graph
#'
#' @param x data
#' @param nY y axis position
#'
#' @return dataframe
#' @export n_fun
#'
#' @examples
n_fun <- function(x, nY){
    if(missing(nY)){nY = -60}
    return(data.frame(y = nY, label = paste0("n= ",length(x))))
}
NRSC/nphys documentation built on Nov. 13, 2024, 2:12 a.m.