Re: [R] Is it possible to draw with function "image.asc " and show a legend strip in the same window?

2012-11-21 Thread riodementa
Thank you David, Nice idea, but i think that the problem is with the map, (maybe, because image.plot is not for this kind of date) I can try to tranform the map with your idea, but it could be hard. I'm looking for an easier solution :) Forget the points. Example (with library adehabitat) CASE

[R] Is it possible to draw with function "image.asc " and show a legend strip in the same window?

2012-11-20 Thread riodementa
I want to represent a Raster map of class "asc", and in the same window a list of points with the funcion points(x,y).. I considered two options: 1. With image.plot(map) and then use points(x,y). It works, and the points are in the correct place, but when I maximize the plot the points are mov

Re: [R] Edges and Rasters

2012-06-21 Thread riodementa
Lot of thanks Sarah! It works!, and sorry for don`t say that I'm using Windows7. And i have another question. Do you know if it is possible to plot the edge using 2 or more cells? What I'm trying to do is an edge wider, and i don'care lose some of the information inside or outside around the edge.

[R] Edges and Rasters

2012-06-20 Thread riodementa
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]