Learn R Programming

ggOceanMaps (version 2.2.0)

Plot Data on Oceanographic Maps using 'ggplot2'

Description

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.

Copy Link

Version

Install

install.packages('ggOceanMaps')

Monthly Downloads

615

Version

2.2.0

License

GPL-3

Maintainer

Mikko Vihtakari

Last Published

January 15th, 2024

Functions in ggOceanMaps (2.2.0)

auto_limits

Automatic limits for basemap
FS

Convert font sizes measured as points to ggplot font sizes
dd_clip_boundary

Create clip boundary from decimal degree limits
LS

Convert line sizes measured as points to ggplot line sizes
basemap

Create a ggplot2 basemap for plotting variables
dd_land

Decimal degree land shapes
deg_to_dd

Convert angular degrees to decimal degree values
fdir_main_areas

Major fisheries areas (hovedomraade) of Norway
fdir_sub_areas

Norwegian sub-areas (lokasjon) for commercial fishing
dist2land

Calculate distance to the closest land for coordinates
geonorge_bathymetry

Open Geonorge bathymetry shapefiles
rotate_crs

Rotate CRS
dd_rbathy

Decimal degree bathymetry
get_depth

Extract depth for coordinates from a raster bathymetry dataset
qmap

Quick map
dd_to_deg

Convert decimal degree values to angular degrees
round_any

Round to multiple of any number
ggOceanMaps-package

Plot Data on Oceanographic Maps using ggplot2
define_bathy_style

Define bathymetry style for basemap
theme_map

A ggplot2 theme for maps
guess_coordinate_columns

Guess longitude and latitude columns in a data frame
define_shapefiles

Define a shapefile to use in plotting from the limits argument
transform_coord

Transform spatial coordinates to another projection
quiet

Return function output quietly
vector_bathymetry

Create a polygon bathymetry from a raster bathymetry file
raster_bathymetry

Simplify a bathymetry raster ready for vectorization
ices_areas

ICES Advisory Areas
is_decimal_limit

Test whether a limit argument is specified as decimal degrees.
select_element

Select an element of each vector from a list
reorder_layers

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

A list of pre-made shapefiles for basemap
basemap_data

Create basemapData object for basemap plotting
clip_shapefile

Clip a shapefile using a bounding area
load_map_data

Load large shapefile objects
map_cmd

Return map elements for basemap