If the data you need is not included in the package, use ne_download() to fetch it directly from Natural Earth. You must specify the scale, type, and category (either "physical" or "cultural").
Example of downloading lakes and rivers:
library(rnaturalearth)
library(ggplot2)
library(sf)
# Download lakes at 1:110 scale
lakes110 <- ne_download(scale = 110, type = "lakes", category = "physical")
plot(lakes110)
# Download rivers at 1:50 scale as an sf object
rivers50 <- ne_download(
scale = 50,
type = "rivers_lake_centerlines",
category = "physical",
returnclass = "sf"
)
# Plot using ggplot2
ggplot(rivers50) +
geom_sf() +
theme_minimal()