Learn R Programming

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

ggOceanMaps (version 1.1)

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() function 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.

Copy Link

Version

Install

install.packages('ggOceanMaps')

Monthly Downloads

615

Version

1.1

License

GPL-3

Maintainer

Mikko Vihtakari

Last Published

May 21st, 2021

Functions in ggOceanMaps (1.1)

deg_to_dd

Convert angular degrees to decimal degree values
getCores

Pick a suitable number of cores
dist2land

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

Guess longitude and latitude columns in a data frame
auto_limits

Automatic limits for basemap
raster_bathymetry

Simplify a bathymetry raster ready to be vectorized
reorder_layers

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

Return function output quietly
basemap

Create a ggplot2 basemap for plotting variables
FS

Convert font sizes measured as points to ggplot font sizes
round_any

Round to multiple of any number
vector_bathymetry

Create a SpatialPolygonsDataFrame bathymetry from a raster bathymetry file
is_decimal_limit

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

Convert line sizes measured as points to ggplot line sizes
select_element

Select an element of each vector from a list
ggOceanMaps-package

Plot Data on Oceanographic Maps using ggplot2
ksmooth_polys

Wrapper to smooth_ksmooth SpatialPolygonsDataFrames
shapefile_list

A list of pre-made shapefiles for basemap
load_map_data

Load large shapefile objects
basemap_data

Create basemapData object for basemap plotting
clip_shapefile

Clip a shapefile (SpatialPolygon) using a bounding area
theme_map

A ggplot2 theme for maps
qmap

Quick map
map_cmd

Return map elements for basemap
transform_coord

Transform spatial coordinates to another projection
dd_to_deg

Convert decimal degree values to angular degrees
define_shapefiles

Define a shapefile to use in plotting from the limits argument