mf_background function

Plot a background image

Plot a background image

Plot a background image on an existing plot

mf_background(filename, ...)

Arguments

  • filename: filename of the background image, PNG or JPG/JPEG format.
  • ...: further parameters for rasterImage

Returns

No return value, a background image is displayed.

Examples

mtq <- mf_get_mtq() mf_map(mtq, col = NA, border = NA) mf_background(system.file("img/background.jpg", package = "mapsf")) mf_map(mtq, lwd = 3, col = NA, border = "white", add = TRUE) mf_credits( txt = "Background photo by Noita Digital on Unsplash", col = "white" )
  • Maintainer: Timothée Giraud
  • License: GPL (>= 3)
  • Last published: 2024-10-22