R/pts.R

Defines functions pts

Documented in pts

#' pts
#'
#' @description convert size of geom_text() text to pts
#' @param x text size to convert
#' @export pts

pts <- function(x){
  as.numeric(grid::convertX(grid::unit(x, 'points'), 'mm'))
}
padpadpadpad/MicrobioUoE documentation built on April 6, 2020, 6:28 p.m.