R/add_logo.R

Defines functions add_logo

Documented in add_logo

#' Add Forest Research logo to ggplot2 graphics.
#'
#' Use magick to add logo to a data viz
#'
#' @importFrom magick image_read
#' @importFrom grid grid.raster
#' @export


 <- function() {
  logo <- image_read("https://github.com/dbrby/dbmisc/blob/master/img/fr_logo2.png?raw=true")
  
  grid::grid.raster(logo, x = 0, y = -0.03, just = c('left', 'bottom'), 
                    width = unit(1, 'inches'))

  
  
}
dbrby/dbmisc documentation built on April 9, 2022, 12:37 a.m.