R/ggplot_pts.R

Defines functions ggplot_pts

Documented in ggplot_pts

# Convert mm in ggplot to points. See https://gist.github.com/andrewheiss/93f3da5d6daa8c10c37cc97d8c8d83ab

#' Title
#'
#' @param x
#'
#' @return
#' @export
#'
#' @examples
ggplot_pts <- function(x) {
  as.numeric(grid::convertUnit(grid::unit(x, "pt"), "mm"))
}
rfortherestofus/obtn documentation built on Nov. 13, 2022, 7:25 p.m.