Re: [R-sig-Geo] Add text INSIDE spplot map

2011-07-11 Thread Tom Gottfried
Hi again, Am 11.07.2011 14:32, schrieb Jose Iparraguirre: Thanks Tom, Here's an example using the usual dataset, meuse. data(meuse) coordinates(meuse) = ~x+y l1 = list(sp.text, c(179050, 330877),Hola,col=red,font=2) Explicitly giving first=FALSE in this line l1 = list(sp.text, c(179050,

Re: [R-sig-Geo] Add text INSIDE spplot map

2011-07-11 Thread Edzer Pebesma
Yes, you can, but it might not be trivial. In particular, you will have to dive into how this is done with the routines in package grid. The book R graphics and the accompanying web site, http://www.stat.auckland.ac.nz/~paul/RGraphics/rgraphics.html contain many examples. See e.g.

[R-sig-Geo] Kernel density based on a variable value

2011-07-11 Thread vioravis
I am superimposing a kernel density plot on the US map (as per the suggestion given in this thread: http://r-sig-geo.2731867.n2.nabble.com/Kernel-density-plot-on-a-US-map-td6196265.html) I have the latitude and longitude of each location in US. I also have a variable Z whose value dictates the

Re: [R-sig-Geo] Kernel density based on a variable value

2011-07-11 Thread vioravis
I am currently using: density(pts) Will the density be proportional to the value of Z if I use: density(pts,weights = Z) Please clarify. Thank you. Ravi -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Kernel-density-based-on-a-variable-value-tp6570975p6571047.html

[R-sig-Geo] GISRUK Call for papers

2011-07-11 Thread Barry Rowlingson
Dear R-spatialists in the UK and environs, you may be interested in this: Call for Papers, GISRUK2012, Lancaster University - 11th to 13th April 2012 We are pleased to invite you to submit short (~1500 word) papers for the 20th annual GIS Research UK conference (GISRUK) which will be held at

[R-sig-Geo] Help with project function in rgdal library

2011-07-11 Thread Patrick Leahy
Hi, I'm trying to plot a set of geographical coordinates over the polygons in a shapefile, so I need to transform the coordinates to the same projection. I'm currently using the project function in the rgdal library, but I can't seem to figure out how to format the proj string argument correctly.

[R-sig-Geo] Search in number sequence

2011-07-11 Thread Narayani Barve
Hi All, I have a vector with repeated values like x2[1:30] [1] 0 6 18 0 6 18 0 6 18 0 6 18 0 6 18 0 6 18 0 6 18 0 6 18 0 6 18 0 6 18 I want to search the sequence in this vector. And search should give me the index of matching sequence. For example. I want to search the

[R-sig-Geo] Exporting spatstat 'pixel image' to Arcview 9.x as an e00 or ascii

2011-07-11 Thread Honey-Marie de la Giroday
Dear All, I have a pixel image (im) I received as a .RData file.  I need to export this pixel image from R in a file format that can be imported into Arcview 9.x (e.g., .e00 or ascii). Below is some of the code that I have been trying to use. I have reviewed the manuals for rgdal, maptools, sp,

Re: [R-sig-Geo] Exporting spatstat 'pixel image' to Arcview 9.x as an e00 or ascii

2011-07-11 Thread mattc0
Hi, The way I go about converting grid data to ascii grid text for loading into ArcGIS is to convert your SpatialGridDataFrame into a raster object (see the raster package for details) and then write to ascii using something along the lines of... library(maptools) as(Im,