R/utils.R

Defines functions ggname `%||%` `%l0%`

`%l0%` <- function(x, y) if (length(x) == 0) y else x
`%||%` <- function(x, y) if (is.null(x)) y else x
ggname <- function(prefix, grob) {
  grob$name <- grid::grobName(grob, prefix)
  grob
}

#' Base ggproto classes for treemapify extension to ggplot2
#'
#' @seealso ggplot2::ggproto
#' @keywords internal
#' @name treemapify-ggproto
NULL

Try the treemapify package in your browser

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

treemapify documentation built on Dec. 14, 2025, 5:06 p.m.