Plot a point on a world map.
mf_worldmap(
x,
lon,
lat,
water_col = "lightblue",
land_col = "grey60",
border_col = "grey40",
border_lwd = 0.8,
...
)
object of class sf
or sfc
longitude
latitude
color of the water
color of the land
color of the borders
width of the borders
further parameters related to the plotted point aspect (cex, pch, col...)
No return value, a world map is displayed.
The main part of the code is stolen from @fzenoni (https://gist.github.com/fzenoni/ef23faf6d1ada5e4a91c9ef23b0ba2c1).
mtq <- mf_get_mtq()
mf_worldmap(mtq)
mf_worldmap(lon = 24, lat = 39)
mf_worldmap(
lon = 106, lat = 26,
pch = 4, lwd = 3, cex = 2, col = "tomato4",
water_col = "#232525", land_col = "#A9B7C6",
border_col = "white", border_lwd = 1
)