ggOceanMaps2.3.0 package

Plot Data on Oceanographic Maps using 'ggplot2'

auto_limits

Automatic limits for basemap

basemap_data

Create basemapData object for basemap plotting

basemap

Create a ggplot2 basemap for plotting variables

clip_shapefile

Clip a shapefile using a bounding area

dd_clip_boundary

Create clip boundary from decimal degree limits

dd_to_deg

Convert decimal degree values to angular degrees

define_bathy_style

Define bathymetry style for basemap

define_shapefiles

Define a shapefile to use in plotting from the limits argument

deg_to_dd

Convert angular degrees to decimal degree values

dist2land

Calculate distance to the closest land for coordinates

fdir_main_areas

Major fisheries areas (hovedomraade) of Norway

fdir_sub_areas

Norwegian sub-areas (lokasjon) for commercial fishing

FS

Convert font sizes measured as points to ggplot font sizes

geonorge_bathymetry

Open Geonorge bathymetry shapefiles

get_depth

Extract depth for coordinates from a raster bathymetry dataset

ggOceanMaps-package

Plot Data on Oceanographic Maps using ggplot2

guess_coordinate_columns

Guess longitude and latitude columns in a data frame

is_decimal_limit

Test whether a limit argument is specified as decimal degrees.

load_map_data

Load large shapefile objects

LS

Convert line sizes measured as points to ggplot line sizes

map_cmd

Return map elements for basemap

qmap

Quick map

quiet

Return function output quietly

raster_bathymetry

Simplify a bathymetry raster ready for vectorization

reorder_layers

Move basemap land, glacier and grid layers on top of other ggplot la...

rotate_crs

Rotate CRS

round_any

Round to multiple of any number

select_element

Select an element of each vector from a list

shapefile_list

A list of pre-made shapefiles for basemap

theme_map

A ggplot2 theme for maps

transform_coord

Transform spatial coordinates to another projection

vector_bathymetry

Create a polygon bathymetry from a raster bathymetry file

Allows plotting data on bathymetric maps using 'ggplot2'. Plotting oceanographic spatial data is made as simple as feasible, but also flexible for custom modifications. Data that contain geographic information from anywhere around the globe can be plotted on maps generated by the basemap() or qmap() functions using 'ggplot2' layers separated by the '+' operator. The package uses spatial shape- ('sf') and raster ('stars') files, geospatial packages for R to manipulate, and the 'ggplot2' package to plot these files. The package ships with low-resolution spatial data files and higher resolution files for detailed maps are stored in the 'ggOceanMapsLargeData' repository on GitHub and downloaded automatically when needed.

  • Maintainer: Mikko Vihtakari
  • License: GPL-3
  • Last published: 2026-02-10 15:20:02 UTC