R/cairo.R

Defines functions cairo_view

Documented in cairo_view

#' Graph Style
#' This function sets the graphics to 'cairo-png' for better graphing in the IDE. It also sets
#' the ggplot2 theme to 'theme_light()'.
#' @return
#' @export
#'

cairo_view <- function() {


  trace(grDevices::png, quote({
    if (missing(type) && missing(antialias)) {
      type <- "cairo-png"
      antialias <- "subpixel"
    }
  }), print = FALSE)

}
joshualerickson/resourceviz documentation built on Jan. 10, 2024, 4:57 p.m.