R/misc.R

Defines functions message_nice

# make messages wrap nicely
message_nice <- function(...) {
  message(paste(strwrap(paste0(...), exdent = 2), collapse = "\n"))
}

gf_gtable_filter <- function (x, keep, trim = FALSE) {
  matches <- x$layout$name %in% keep
  x$layout <- x$layout[matches, , drop = FALSE] # nolint
  x$grobs <- x$grobs[matches]
  if (trim)
    x <- gtable::gtable_trim(x)
  x
}

Try the geofacet package in your browser

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

geofacet documentation built on July 2, 2020, 3:59 a.m.