[R] Edges and Rasters

riodementa jorge.nayamacias at gmail.com
Wed Jun 20 15:19:58 CEST 2012


Hi everyone!

I would like to draw a line surrounding my raster, with i want it in black, 
and i don't know if its possible to change the colour.

A simple example is:

r <- raster(nrow=30, ncol=30, xmn=0)
r[]<-NA
r[393:409]<-99
r[423:439]<-99
r[453:455]<-99
r[456:460]<-30
r[461:469]<-99
r[483:499]<-99
r[513:529]<-99
plot(r,col=terrain.colors(100))
plot( edge(r, type='outer'))

Could anyone help me??
Thanks

--
View this message in context: http://r.789695.n4.nabble.com/Edges-and-Rasters-tp4633966.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list