# specifying axis intervals in maptools?

 Classic List Threaded
3 messages
Reply | Threaded
Open this post in threaded view
|

## specifying axis intervals in maptools?

 Dear colleagues, How to I specify latitude and longitude intervals on x and y axis in a map using the maptools package? Suppose that I plotted a map and using the argument "axes = TRUE", I got the y (latitude) axis plotted to show "-23.6 -23.4 -23.2 -23 -22.8 -22.6" (i.e. 0.2 intervals), but I was actually wanting to see "-23.6 -23.2 -22.8 " (0.4 intervals). How can I customize the intervals? Any help will be greatly appreciated. Regards, -- =8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8--> http://www.unifesp.br/campus/san7/ https://labpescaunifesp.wixsite.com/labpesca/inicioEmail: [hidden email] ; [hidden email] CV Lattes: http://lattes.cnpq.br/5350064124902777Google Scholar: http://scholar.google.com.br/citations?user=zX_EezEAAAAJ&hl=pt-BROrcid: http://orcid.org/0000-0002-9884-1515Research Gate: https://www.researchgate.net/profile/Rodrigo_Martins6/         [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list [hidden email] https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Reply | Threaded
Open this post in threaded view
|

## Re: [FORGED] specifying axis intervals in maptools?

 On 26/09/19 8:52 AM, Rodrigo Plei wrote: > Dear colleagues, > > How to I specify latitude and longitude intervals on x and y axis in a map > using the maptools package? > > Suppose that I plotted a map and using the argument "axes = TRUE", I got > the y (latitude) axis plotted to show "-23.6 -23.4 -23.2 -23 -22.8 -22.6" > (i.e. 0.2 intervals), but I was actually wanting to see "-23.6 -23.2 -22.8 > " (0.4 intervals). How can I customize the intervals? > > Any help will be greatly appreciated. Given that I am not misunderstanding you (always a distinct possibility for me!) I believe that all you need to do is set axes=FALSE in your initial call, then add the axes using something like: axis(side=1) axis(side=2,at=c(-23.6, -23.2, -22.8,
Reply | Threaded
Open this post in threaded view
|

## Re: [FORGED] specifying axis intervals in maptools?

 Dear Rolf, Thank you very much for your reply. I did not send a reproducible example because it was just a local shape file. And, yes, your instructions worked like a charm! :) Once again, thank you! Best regards, Rodrigo -- =8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8-->=8--> http://www.unifesp.br/campus/san7/ https://labpescaunifesp.wixsite.com/labpesca/inicioEmail: [hidden email] ; [hidden email] CV Lattes: http://lattes.cnpq.br/5350064124902777Google Scholar: http://scholar.google.com.br/citations?user=zX_EezEAAAAJ&hl=pt-BROrcid: http://orcid.org/0000-0002-9884-1515Research Gate: https://www.researchgate.net/profile/Rodrigo_Martins6/         [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list [hidden email] https://stat.ethz.ch/mailman/listinfo/r-sig-geo