[R-sig-Geo] Change color of binary mask in spatstat

Marcelino de la Cruz marcelino.delacruz at upm.es
Fri May 8 11:06:45 CEST 2009


Hi Etienne,

Maybe this?

plot(as.mask(demopat$window), col=c(2,3))

Cheers,

Marcelino


At 20:33 07/05/2009, Etienne Bellemare Racine wrote:
>I would like to change the color of a binary mask when I plot it. The
>default is red and beige. I've tried setting col parameter, but it is
>only working with polygonal windows.
>
>data(demopat)
>plot(demopat$window, col=3)
>#Not OK :
>plot(as.mask(demopat$window), col=3)
>
>Thanks,
>Etienne
>
>         [[alternative HTML version deleted]]
>
>_______________________________________________
>R-sig-Geo mailing list
>R-sig-Geo at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/r-sig-geo

________________________________

Marcelino de la Cruz Rot

Departamento de  Biología Vegetal
E.U.T.I. Agrícola
Universidad Politécnica de Madrid
28040-Madrid
Tel.: 91 336 54 35
Fax: 91 336 56 56
marcelino.delacruz at upm.es



More information about the R-sig-Geo mailing list