MikkoVihtakari / ggOceanMaps

Plot oceanographic research data on maps using ggplot2
GNU General Public License v3.0
46 stars 7 forks source link

plotting Indian and Pacific Ocean #44

Open yeseniavegasanchez opened 3 months ago

yeseniavegasanchez commented 3 months ago

Hi! Im trying to plot from Madagascar to America, but there is a problem... just a gray line in the map. I suppose that is related to the antemeridian...

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

Rplot

And this is what I get... Thanks!

MikkoVihtakari commented 3 months ago

This looks like a bug somewhere. Thanks for reporting. I will look into it when I'll find the time.