ggOceanMaps-package | R Documentation |
Uses ggplot2 syntax and shape files to plot research data on oceanographic maps anywhere around the globe.
The general map-making function for ggOceanMaps is
basemap
. This function creates a "canvas" on which research data
can be plotted. The basemap
function is analogous
to ggplot
function from the ggplot2 package.
Remember to use data = <<NAMEOFDATASET>>
for additional geometries
you plot on basemaps
(basemap(60) + geom_point(data =
data.frame(lon = 50, lat = 70), aes(x = lon, y = lat))
as an example). As
a shortcut, you may also use qmap(data.frame(lon = c(10, 50), lat = c(60, 70))).
Bathymetry is plotted using the bathymetry
argument.
Maintainer: Mikko Vihtakari mikko.vihtakari@hi.no (ORCID) (Institute of Marine Research)
Other contributors:
Roger Bivand [contributor]
Hadley Wickham [contributor]
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.