MoveTogether: Move multiple 'continents' about a Euler pole

Description Usage Arguments Value Author(s) Examples

View source: R/MoveTogether.R

Description

Moves multiple 'continents' (which are temporarily or permanently joined) by their midpoints keeping them exactly the same distance from one another so that they behave as a single unit

Usage

1
MoveTogether(centers, pole, angle, EarthRad = 6367.4447)

Arguments

centers

A matix with columns corresponding to continent central positions in degrees. Row 1 for longitude row 2 for latitude. Or a long lat vector for a single continent.

pole

A vector of the long lat of the pole of rotation

angle

The angle of rotation about the pole in degrees

EarthRad

Earth radius in kilometres.

Value

a matix of the new long lat in degrees of the centers of each continent after moving

Author(s)

Laura C. Soul lauracsoul@gmail.com

Examples

1
2
3
centers<-rbind(c(40, -50, -170), c(34, -60, 79))
pole<-c(90, -20)
MoveTogether(centers, pole, angle = 5)

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