I am trying to add a legend to the attached plot. The code I am using here here below. Unfortunately I cannot share the data. Would you please suggest how to modify the code so that the legend would actually show up? Thanks Michele
Here is the code that I am using
ggplot(data = world) +
geom_sf(,show.legend = TRUE) +
labs( x = "Longitude", y = "Latitude") +
ggtitle("Strike-Tried by Fishing Zones - FAO") +
geom_sf(data = strike, pch = 16, color = "red",show.legend = TRUE) +
geom_sf(data = tried, pch =20, color = "navy", show.legend = TRUE) +
theme(panel.background = element_rect(fill = "white")) +
geom_polygon(data = shp, aes(x = long, y = lat, group = group), colour = "black", fill = NA) +
scale_color_manual(values=colors, labels=c("Strike", "Tried"))