[R-sig-Geo] making wrld_simpl longitude borders something other than (-180, 180)

Frede Aakmann Tøgersen frtog at vestas.com
Mon Sep 14 07:38:22 CEST 2015


Hi Nick

To be honest I do not understand your question so I am guessing that you probably only need to set the xlim to c(-100, 100). Here is an example:

> data(wrld_simpl)
> plot(wrld_simpl)
> plot(wrld_simpl, xlim = c(-100, 100))

Why would one wants to redefine the longitudes from the interval (-180, 180) to (-100, 100)?


Yours sincerely / Med venlig hilsen

Frede Aakmann Tøgersen
Specialist, M.Sc., Ph.D.
Plant Performance & Modeling

Technology & Service Solutions
T +45 9730 5135
M +45 2547 6050
frtog at vestas.com
http://www.vestas.com

Company reg. name: Vestas Wind Systems A/S
This e-mail is subject to our e-mail disclaimer statement.
Please refer to www.vestas.com/legal/notice
If you have received this e-mail in error please contact the sender. 


-----Original Message-----
From: R-sig-Geo [mailto:r-sig-geo-bounces at r-project.org] On Behalf Of Nick Matzke
Sent: 14. september 2015 06:51
To: r-sig-geo at stat.math.ethz.ch
Subject: [R-sig-Geo] making wrld_simpl longitude borders something other than (-180, 180)

Hi all,

I would like to plot wrld_simpl, but have the left and right edges of the
map be at something like 100 degrees longitude, rather than (-180, 180).

I tried messing with the bounding box with no luck.

I can imagine something like burrowing into the object and subtracting 80
degrees from all the longitudes, but I suspect there must be a better way?

Any help appreciated!
Nick

	[[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list