Learn R Programming

geosphere (version 1.1.2)

mercator: Mercator projection

Description

Transform longitude/latiude points to the Mercator projection. The main purpose of this function is to illustrate rhumb lines in the vignette.

Usage

mercator(p, r)

Arguments

p
longitude/latitude of point(s). Can be a vector of two numbers, a matrix of 2 columns (first one is longitude, second is latitude) or a SpatialPoints* object
r
Numeric. Radius of the earth; default = 6378137 m

Value

  • matrix

Examples

Run this code
mercator(c(5,52))

Run the code above in your browser using DataLab