get_png: Function for reading a png as a raster

Description Usage Arguments Examples

View source: R/get_png.R

Description

Function for reading a png as a raster

Usage

1
get_png(filename)

Arguments

filename

the filename of the png file

Examples

1
2
3
4
5
6
7
8
9
library(sf)
logo <- get_png(system.file("data/TVERC_logo.png", package = "ALERC"))
myshape <- st_read(system.file("data/BerksOxon.shp", package = "ALERC"))
library(ggplot2)
ggplot(myshape) +
  geom_sf() +
  coord_sf(datum = 27700) +
  annotation_custom(logo, xmin = 470000, xmax = 504000, ymin = 240000, ymax = Inf) +
  theme_tverc()

tvercrobbie/ALERC documentation built on Oct. 11, 2020, 12:56 a.m.