[R-sig-Geo] North arrow, scale bar, legend

2008-11-25 Thread izareis
Hi, I did a kernel map using Script R: image (kernel2d (casos.spp,contorno.poa,h0=7000,nx=250,ny=250),add=TRUE,col=terrain.colors (20)) And I need to put in this map legend, north arrow and scale bar. I tried some scripts but I fail to do. Thanks

[R-sig-Geo] Geonames elevation help

2008-11-25 Thread Michael Denslow
Dear List, I am hoping that someone can help me with the GNsrtm3 function in the Geonames package. I am trying to get elevation values for more than one lat,long stored in a data frame. I am not sure if this function can process more than one request since it is a web query. But since R seems

Re: [R-sig-Geo] Geonames elevation help

2008-11-25 Thread Barry Rowlingson
2008/11/25 Michael Denslow [EMAIL PROTECTED]: I am hoping that someone can help me with the GNsrtm3 function in the Geonames package. I am trying to get elevation values for more than one lat,long stored in a data frame. I am not sure if this function can process more than one request

Re: [R-sig-Geo] Geonames elevation help

2008-11-25 Thread Tomislav Hengl
You could also loop e.g. (this way you have a bit more control): long - c(-81.66,-82.66) lat - c(36.21,37.21) df - data.frame(lat,long) df$srtm - rep(NA, length(df$lat)) for(i in 1:length(df$srtm)){ + df$srtm[i] - GNsrtm3(df$lat[i],df$long[i])$srtm3 + } df lat long srtm 1 36.21

Re: [R-sig-Geo] North arrow, scale bar, legend

2008-11-25 Thread Edzer Pebesma
The r-spatial web site http://r-spatial.sourceforge.net/ has a graph gallery; I think it only works for spplot which takes data in sp classes. You could us it by coercing your objects to it as library(maptools) as(casos.spp, SpatialPointsDataFrame) might work. -- Edzer [EMAIL PROTECTED] wrote:

Re: [R-sig-Geo] North arrow, scale bar, legend

2008-11-25 Thread Roger Bivand
On Tue, 25 Nov 2008, Edzer Pebesma wrote: The r-spatial web site http://r-spatial.sourceforge.net/ has a graph gallery; I think it only works for spplot which takes data in sp classes. You could us it by coercing your objects to it as library(maptools) as(casos.spp, SpatialPointsDataFrame)

[R-sig-Geo] Error in execution of lattice code

2008-11-25 Thread Waichler, Scott R
The following code runs fine on Linux, but not on my Mac. The error message is given below, after the levelplot() call. I was able to run lattice functions previously on the Mac without any problems. The only change I'm aware of is that my Mac was recently worked on by a system administrator to

Re: [R-sig-Geo] Error in execution of lattice code

2008-11-25 Thread Edzer Pebesma
It seems that the R graphics system cannot find the font mentioned. Maybe try r-sig-mac for this question? -- Edzer Waichler, Scott R wrote: The following code runs fine on Linux, but not on my Mac. The error message is given below, after the levelplot() call. I was able to run lattice