[R-sig-Geo] axes when plotting polys

Christophe Declercq cdeclercq at nordnet.fr
Thu Feb 5 18:26:42 CET 2004


Hi, Stéphane

I don't know if it is really 'usual' but I use something like (building on
the '?plotpolys' example in the 'maptools' package):

> library(maptools)
> try2 <- read.shape(system.file("shapes/columbus.shp",
package="maptools")[1])
> mappolys <- Map2poly(try2, as.character(try2$att.data$NEIGNO))
> plot(attr(mappolys, "maplim"), type="n", axes=FALSE, ann=FALSE, asp=1)
> plotpolys(mappolys, add=TRUE)

Hope it helps.

Christophe
--
Christophe DECLERCQ, MD
Observatoire Régional de la Santé Nord-Pas-de-Calais
13, rue Faidherbe 59046 LILLE Cedex FRANCE
Phone +33 3 20 15 49 24
Fax   +33 3 20 55 92 30
E-mail c.declercq at orsnpdc.org


> -----Message d'origine-----
> De : r-sig-geo-bounces at stat.math.ethz.ch
> [mailto:r-sig-geo-bounces at stat.math.ethz.ch]De la part de Stephane DRAY
> Envoyé : jeudi 5 février 2004 17:45
> À : r-sig-geo at stat.math.ethz.ch
> Objet : [R-sig-Geo] axes when plotting polys
>
>
> Hello,
> I  would like to plot polylist object without axes. if I use axes=F, it
> does not work because the "..." are used as arguments of the function
> polygon and not for the initial plot. I have rewrite my own function
> (moving "..." argument from polygon to plot) and it works fine
> but I wonder
> if there is a more "usual" way to do that.
>
> Thanks.
> Stéphane DRAY
> ------------------------------------------------------------------
> --------------------------------
>
> Département des Sciences Biologiques
> Université de Montréal, C.P. 6128, succursale centre-ville
> Montréal, Québec H3C 3J7, Canada
>
> Tel : 514 343 6111 poste 1233
> E-mail : stephane.dray at umontreal.ca
> ------------------------------------------------------------------
> --------------------------------
>
> Web
> http://www.steph280.freesurf.fr/
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://www.stat.math.ethz.ch/mailman/listinfo/r-sig-geo
>




More information about the R-sig-Geo mailing list