I have been trying to make a map of a city using sf and osm, but I am struggling with rivers. I have managed to extract the river lines, so it looks like on the image, i.e. there is a single line per river.
Is there a way to plot the river borders, so one can see how wide the river is?
I extract the lines like this:
rivers <- bbx %>%
opq()%>%
add_osm_feature(key = "waterway",
value = c("river", "riverbank", "canal", "stream")) %>%
osmdata_sf()
And then this is the relevant bit in my ggplot2 code:
geom_sf(data = rivers$osm_lines,
col = "red",
size = .15,
alpha = 1)+

