View source: R/mf_background.R
mf_background | R Documentation |
Plot a background image on an existing plot
mf_background(filename, ...)
filename |
filename of the background image, PNG or JPG/JPEG format. |
... |
further parameters for
|
No return value, a background image is displayed.
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"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.