Learn R Programming

ggOceanMaps (version 1.3.4)

ggOceanMaps-package: Plot Data on Oceanographic Maps using ggplot2

Description

Uses ggplot2 syntax and shape files to plot research data on oceanographic maps anywhere around the globe.

Arguments

Author

Maintainer: Mikko Vihtakari mikko.vihtakari@hi.no (ORCID) (Institute of Marine Research)

Other contributors:

  • Yves Reecht (ORCID) (Institute of Marine Research) [contributor]

  • Hadley Wickham [contributor]

  • Simon O'Hanlon [contributor]

  • Roger Bivand [contributor]

Details

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.

See Also