Learn R Programming

⚠️There's a newer version (2.2.0) of this package.Take me there.

ggOceanMaps (version 1.2.6)

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 shapefiles stored in the 'ggOceanMapsData' package, geospatial packages for R to manipulate, and the 'ggspatial' package to help to plot these shapefiles. High-resolution shapefiles for detailed maps are stored on GitHub and downloaded automatically when needed.

Copy Link

Version

Install

install.packages('ggOceanMaps')

Monthly Downloads

568

Version

1.2.6

License

GPL-3

Maintainer

Mikko Vihtakari

Last Published

January 8th, 2022

Functions in ggOceanMaps (1.2.6)

clip_shapefile

Clip a shapefile (SpatialPolygon) using a bounding area
basemap_data

Create basemapData object for basemap plotting
LS

Convert line sizes measured as points to ggplot line sizes
getCores

Pick a suitable number of cores
geonorge_bathymetry

Open Geonorge bathymetry shapefiles
select_element

Select an element of each vector from a list
dist2land

Calculate distance to the closest land for coordinates in a data frame
theme_map

A ggplot2 theme for maps
round_any

Round to multiple of any number
is_decimal_limit

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

Guess longitude and latitude columns in a data frame
shapefile_list

A list of pre-made shapefiles for basemap
qmap

Quick map
ggOceanMaps-package

Plot Data on Oceanographic Maps using ggplot2
basemap

Create a ggplot2 basemap for plotting variables
quiet

Return function output quietly
map_cmd

Return map elements for basemap
load_map_data

Load large shapefile objects
reorder_layers

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

Simplify a bathymetry raster ready for vectorization
transform_coord

Transform spatial coordinates to another projection
vector_bathymetry

Create a polygon bathymetry from a raster bathymetry file
FS

Convert font sizes measured as points to ggplot font sizes
convert_crs

convert_crs, system specific epsg code string formating for CRS.
define_shapefiles

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

Convert angular degrees to decimal degree values
auto_limits

Automatic limits for basemap
dd_to_deg

Convert decimal degree values to angular degrees