View source: R/01-processCoordinateData.R
centerData | R Documentation |
Transfer data to the center of the map, either Europe or Pacific by adding or substracting 360° from the Longitude. If "Europe" longitudes are transposed to the range (-180, 180), if "Pacific" longitudes are transposed to the range (0, 360).
centerData(data, center = c("Europe", "Pacific"))
data |
(data.frame) data containing column "Longitude" |
center |
(character) center to shift data to, either "Europe" or "Pacific" |
(data.frame) data shifted to the center
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.