Plot a point on a world map.

mf_worldmap(x, lon, lat, ...)

Arguments

x

object of class sf or sfc

lon

longitude

lat

latitude

...

further parameters to pass to points (cex, pch, col...).

Value

No return value, a world map is displayed.

Note

The main part of the code is stolen from @fzenoni (https://gist.github.com/fzenoni/ef23faf6d1ada5e4a91c9ef23b0ba2c1).

Examples

mtq <- mf_get_mtq() mf_worldmap(mtq)
mf_worldmap(lon = 24, lat = 39)