Basemap functions

Main functions to plot maps and transform data to correct projection

basemap()

Create a ggplot2 basemap for plotting variables

add_land()

Add a land layer on basemaps

transform_coord()

Transform spatial coordinates to another projection

qmap()

Quick map

Add charts on maps

Functions to add charts on maps. Under development.

waffle_chart()

Plot waffle charts

Create oceanographic plots

Functions and datasets to create temperature-salinity and section plots.

ts_plot()

Temperature-salinity (T-S) plot from a data frame using ggplot2

section_plot()

Make an oceanographic section plot from an x-y-z data frame

interpolate_section()

Interpolate x-y-z data for oceanographic section plots

define_water_type()

Define water type based on temperature and salinity

kongsfjord_watermasses

Water mass definitions for Kongsfjorden

rijpfjord_watermasses

Water mass definitions for Rijpfjorden

Other functions

Functions that do other things

dist2land()

Calculate the closest distance to land for given coordinates

interpolate_spatial()

Interpolate a spatial surface from observations

plot(<spatInt>)

Plot an interpolated map

LS()

Convert line sizes measured as points to ggplot line sizes

FS()

Convert font sizes measured as points to ggplot font sizes

Example datasets

Datasets used as examples for package functions

chlorophyll

Chlorophyll-a recordings in Kongsfjorden

kongsfjord_moorings

Location of recorded moorings in Kongsfjorden

npi_stations

Location of NPI's permanent marine biological monitoring stations

meiofauna

Pan-Arctic meiofauna data from Bluhm et al. 2018

zooplankton

Zooplankton data

ctd_kongsfjord

Example CTD data for Kongsfjorden

ctd_rijpfjord

Example CTD data for Rijpfjorden

Internal basemap functions

Internal functions dealing with data and graphics for basemap. These functions are run on the background and only needed if you modify your maps beyond the options offered by PlotSvalbard.

auto_limits()

Automatic limits for basemap

basemap_data()

Create basemapData object for basemap plotting

basemap_limits()

Define limits for a basemap

clip_bathymetry()

Clip a bathymetry shapefile to fit a basemap

clip_current()

Clip ocean current data frame to fit a basemap

clip_shapefile()

Clip a shape file (SpatialPolygon) using a bounding area

deg_grid()

Decimal degree grid from UTM projected spatial objects

deg_grid_polar()

Decimal degree grid from polar stereographic spatial objects

map_cmd()

Return map elements for basemap

map_projection()

Get the projection for a map type

map_type()

Get information for a map type

theme_map()

A ggplot2 theme for maps

Shapefiles

Shapefiles used by the package. These shapefiles are automatically used by the basemap function. Introducing new shapefiles is only required if you want to improve the resolution or use PlotSvalbard to make maps outside the Svalbard region.

arctic_bathy

SpatialPolygonsDataFrame containing pan-Arctic bathymetry

arctic

SpatialPolygonsDataFrame containing land shapes for pan-Arctic map with a cutpoint at 40 degrees latitude.

barents_bathy

SpatialPolygonsDataFrame containing bathymetry for the Barents Sea

barents_currents

Data frame containing Atlantic and Arctic ocean currents for the Barents Sea

barents.ld

SpatialPolygonsDataFrame containing land shapes for the Barents Sea region.

kong.cr

SpatialPolygonsDataFrame containing clip boundaries for Kongsfjorden

mosj.cr

SpatialPolygonsDataFrame containing clip boundaries for the Environmental Monitoring on Svalbard and Jan Mayen transect

svalbard_bathy

SpatialPolygonsDataFrame containing detailed bathymetry for Svalbard region

svalbard.gl

SpatialPolygonsDataFrame containing glacier boundaries on Svalbard. The tidal-glacier fronts for Kongsfjorden are from July 2017, while the rest vary between 2005 and 2017.

svalbard.ld

SpatialPolygonsDataFrame containing land shapes for Svalbard