Im trying to plot from Madagascar to America, but there is a problem… just a gray line in the map.
Here is the code:
basemap = basemap(limit= c(40, -70, -37 ,40), rotate= T, grid.col = NA, land.col = "lightgray")+
xlab("Longitude")+
ylab("Latitude")+
theme(
axis.text = element_text(colour="black", size=10),
axis.title = element_text(colour="black", size=12),
panel.background = element_rect(fill="lightblue"),
panel.ontop = F,
panel.border = element_rect(fill = NA, colour = "black", size = 0.1),
panel.grid.minor = element_line(colour="grey90", size=0),
panel.grid.major = element_line(colour="grey90", size=0),
legend.text = element_text(size=12),
legend.title = element_blank(),
legend.key.size = unit(0.7, "cm"),
legend.position = "top"
)
basemap
I need the whole Indian and Pacific oceans in the same map.
New contributor
Yesenia Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.