Description Usage Arguments Examples
Function for reading a png as a raster
1 | get_png(filename)
|
filename |
the filename of the png file |
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.