I am using ggOceanMaps in R and I tried to create a map of Southern California with bathymetry data. However, the bathymetry is blurred out, which makes me think the package does not have good bathymetry data to make a close-up map of a given area. Does anyone know if the problem can be fixed or if I should use another package?
This is the code I used:
dt <- data.frame(lon = c(-125, -125, -111, -111), lat = c(28, 37, 37, 28))
basemap(data = dt, bathymetry = TRUE)
I got a nice map but with bad bathymetric resolution.
With the new version of ggOceanMaps (2.0; hopefully soon on CRAN), you can plot raster bathymetries up to 15 arc-second resolution:
You can use any raster data, for example, marmap to download ETOPO raster data up to 15 arc-second resolution (see the
resolutionargument inmarmap::getNOAA.bathy())As for alternatives, you can also use the marmap package to plot bathymetric maps:
Created on 2023-06-30 with reprex v2.0.2