MapContinents: Maps continents on Mercator projection

Description Usage Arguments Details Value Author(s) Examples

View source: R/MapContinents.R

Description

Given a set of continent centres and their radius plots them on a Mercator projection

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
MapContinents(
  continent_centres,
  radius,
  xlim = c(-180, 180),
  ylim = c(-90, 90),
  resolution = 1000,
  sea_colour = "blue",
  land_colour = "green",
  ...
)

Arguments

continent_centres

A two-column matrix of decimalised longitudes (first column) and latitudes (second column).

radius

A single radius value for each continent in kilometres.

xlim

A single radius value for each continent in kilometres.

ylim

A single radius value for each continent in kilometres.

resolution

The number of points to use to plot each continent.

sea_colour

The colour value to use to plot the sea.

land_colour

The colour value used to plot the land.

...

Other arguments to be passed to plot.

Details

Nothing yet.

Value

A Mercator projection plot of each continent.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples

1
MapContinents(continent_centres = matrix(c(-0, 0), ncol=2), radius = 2000)

laurasoul/dispeRse documentation built on May 25, 2021, 4:50 a.m.