specifying axis intervals in maptools?

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

specifying axis intervals in maptools?

Rodrigo Plei
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/
<http://www.unifesp.br/campus/san7/graduacao/cursos/bacharelado-interdisciplinar-em-ciencia-e-tecnologia-do-mar>
https://labpescaunifesp.wixsite.com/labpesca/inicio

Email: [hidden email] ; [hidden email]
CV Lattes: http://lattes.cnpq.br/5350064124902777
Google Scholar:
http://scholar.google.com.br/citations?user=zX_EezEAAAAJ&hl=pt-BR
Orcid: http://orcid.org/0000-0002-9884-1515
Research Gate: https://www.researchgate.net/profile/Rodrigo_Martins6/
<https://www.researchgate.net/profile/Rodrigo_Martins6/?ev=hdr_xprf>

        [[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?

Rolf Turner

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, <whatever?))

Can't say for sure without a reproducible example.

HTH

cheers,

Rolf Turner

--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

_______________________________________________
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?

Rodrigo Plei
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/
<http://www.unifesp.br/campus/san7/graduacao/cursos/bacharelado-interdisciplinar-em-ciencia-e-tecnologia-do-mar>
https://labpescaunifesp.wixsite.com/labpesca/inicio

Email: [hidden email] ; [hidden email]
CV Lattes: http://lattes.cnpq.br/5350064124902777
Google Scholar:
http://scholar.google.com.br/citations?user=zX_EezEAAAAJ&hl=pt-BR
Orcid: http://orcid.org/0000-0002-9884-1515
Research Gate: https://www.researchgate.net/profile/Rodrigo_Martins6/
<https://www.researchgate.net/profile/Rodrigo_Martins6/?ev=hdr_xprf>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[hidden email]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo