我目前正在使用countrySP <- getMap(resolution='low') from rworldmap but this package has now been depreciated. Is there a new way to get a spatial polygon map from a different package. Alternatively all I really need is a way to identify the country from a set of decimal coordinates. Is there an easier way to do this?
我已经尝试过了
`countriesSP <- ne_countries(
scale = 10,
type = "countries",
continent = NULL,
country = NULL,
geounit = NULL,
sovereignty = NULL,
returnclass = c("sp", "sf")
)`
但是将来的版本中也会删除 sp 选项,我不知道如何使用 sf 版本。