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

englishchristophera at gmail.com englishchristophera at gmail.com
Mon Sep 14 10:58:49 CEST 2015



There is the minus sign part to enter. Though knowing what you are ultimately seeking would help clarify. That being said- dancing around the dateline is conspicuous for the difficulties that can present.Chris
------ Original message------From: Nick MatzkeDate: Mon, Sep 14, 2015 7:47 AMTo: Frede Aakmann Tøgersen;Cc: r-sig-geo at stat.math.ethz.ch;Subject:Re: [R-sig-Geo] making wrld_simpl longitude borders something other than (-180, 180)
Apologies, I got my wires crossed.What I meant was, how would I make a map where the left edge was atlongitude 100 (e.g. Thailand), and the right edge is at, say 99(again Thailand).  The Pacific Ocean, and the International Dateline, wouldbe in the middle of this map.I tried the obvious thing:plot(wrld_simpl, xlim = c(100, 99))...but that produces a flipped map...Cheers!NickOn Mon, Sep 14, 2015 at 3:38 PM, Frede Aakmann Tøgersen wrote:> 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>	[[alternative HTML version deleted]]_______________________________________________R-sig-Geo mailing listR-sig-Geo at r-project.orghttps://stat.ethz.ch/mailman/listinfo/r-sig-geo
	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list