Re: [R-sig-Geo] plotting Football field ball pattern data

2009-01-29 Thread Miguel Eduardo Gil Biraud
Hi, I was going to post a similar question as I am also a fresh new user of R. In my case I have between 10 million and 20 million latitude, longitude pairs and want to get an image in which each pixel has a color that is a function of the amount of positions that would fall into the spatial bin

Re: [R-sig-Geo] Even simpler TM_WORLD_BORDERS_SIMPLE (AND SP???)

2009-01-29 Thread Hans-Jörg Bibiko
On 30.01.2009, at 07:47, Edzer Pebesma wrote: Jim Burke wrote: OK I am on decaf coffee now. I reinstalled R and all is well now. Now Hans, below is what I get when I run your code. Is this expected? Quick and certainly DIRTY. > library("maptools") Loading required package: foreign > load(url

[R-sig-Geo] How to extract just the Moran's I values using moran.test{spdep}?

2009-01-29 Thread Xingli Giam
Hello List, I hope to extract the Moran's I values using moran.test{spdep} to manually plot a correlogram. However calling the value $estimate produces not just the Moran's I, but also its expectation and variance under method assumption. Is there a way I can extract just the Moran's I so that I c

Re: [R-sig-Geo] Even simpler TM_WORLD_BORDERS_SIMPLE (AND SP???)

2009-01-29 Thread Edzer Pebesma
Jim Burke wrote: OK I am on decaf coffee now. I reinstalled R and all is well now. Now Hans, below is what I get when I run your code. Is this expected? Quick and certainly DIRTY. > library("maptools") Loading required package: foreign > load(url("http://spatial.nhh.no/R/etc/TM_WORLD_BORDERS

[R-sig-Geo] plotting Football field ball pattern data

2009-01-29 Thread srinivasa raghavan
Hi r-sig-geo team, I am a new user of R 2.8.1 in windows 2003. I have a data set of football ball pattern data. The data is for multiple matches. The variables are : match: The code number of the match. period: First half or second half denotted by 1 or 2. pitchX: The x co-ordinate of the field.

Re: [R-sig-Geo] memory issue on R with Linux 64

2009-01-29 Thread Alexander.Herr
Thanks Robert, PolygonsToRaster may be a way, but I only want to transfer onto the raster where the raster is not NA (ie a subset of the polygon area). So what I would need is a why to exclude all polygon parts where the raster is NA. In theory I could do the whole transfer and than stamp out a

Re: [R-sig-Geo] memory issue on R with Linux 64

2009-01-29 Thread Alexander.Herr
Hi Edzer, I didn't expect R to do magic (although it does it better than most prgs). What surprised me was that under Linux there was no use of swap space - I hoped memory handling would be including swap space. Cheers Herry -Original Message- From: Edzer Pebesma [mailto:edzer.pebe

Re: [R-sig-Geo] Even simpler TM_WORLD_BORDERS_SIMPLE (AND SP???)

2009-01-29 Thread Jim Burke
OK I am on decaf coffee now. I reinstalled R and all is well now. Now Hans, below is what I get when I run your code. Is this expected? Quick and certainly DIRTY. > library("maptools") Loading required package: foreign > load(url("http://spatial.nhh.no/R/etc/TM_WORLD_BORDERS_SIMPL-0.2.RData";))

[R-sig-Geo] Even simpler TM_WORLD_BORDERS_SIMPLE (AND SP???)

2009-01-29 Thread Jim Burke
Thanks Hans, Its been a day or so since I have used R graphics. Now sp seems to lack grid. I cannot run my tried and true graphics workspace at all. Are you folks having any trouble? What am I doing wrong? Below 1. try to load library sp. No go. 2. download sp from Berkeley (US1). Different erro

Re: [R-sig-Geo] Even simpler TM_WORLD_BORDERS_SIMPLE

2009-01-29 Thread Hans-Jörg Bibiko
On 29.01.2009, at 16:49, Jonathan Callahan wrote: Is anyone aware of an even more simplified version of the data that went into creating TM_WORLD_BORDERS_SIMPL-0.2.RData so that we might have TM_WORLD_BORDERS_LOWRES.RData for use cases like my own. A very quick solution would be to filter out

Re: [R-sig-Geo] contour lines on a plot

2009-01-29 Thread Virgilio Gomez Rubio
Maxime, > It doesn't help, it does! Many thanks! > Do you know if there is a way to label contour using contourLines(), or, > alternatively, to specify the type of line? Unfortunately, > drawlabels=TRUE or lty=n don't work. For that, you can check the example here: http://www.asdar-book.org/c

[R-sig-Geo] Even simpler TM_WORLD_BORDERS_SIMPLE

2009-01-29 Thread Jonathan Callahan
Hi, I am currently using the R maps package in an on-line visualization tool: http://mazamascience.com/OilExport/ Because of the lack of post-Soviet borders, I am currently investigating replacing the maps package with Roger Bivand's examples using TM_WORLD_BORDERS_SIMPL-0.2.RData: http://spati

Re: [R-sig-Geo] Different Moran's I correlograms using correlog{ncf} and sp.correlogram{spdep}

2009-01-29 Thread Roger Bivand
On Fri, 30 Jan 2009, Xingli Giam wrote: Dear Roger, So what you trying to say about correlog{ncf} is that after the bands are computed, all the correlations between data points whose distance are within the bin are computed. So I suppose it is a binary kind of specification, if pairwise dist

Re: [R-sig-Geo] Different Moran's I correlograms using correlog{ncf} and sp.correlogram{spdep}

2009-01-29 Thread Xingli Giam
Dear Roger, So what you trying to say about correlog{ncf} is that after the bands are computed, all the correlations between data points whose distance are within the bin are computed. So I suppose it is a binary kind of specification, if pairwise distances are in the bin, the correlations will be

Re: [R-sig-Geo] Problem with SpatialPolygons containing a hole

2009-01-29 Thread Roger Bivand
On Thu, 29 Jan 2009, Hans-Jörg Bibiko wrote: On 29.01.2009, at 13:08, Roger Bivand wrote: Set the pbg= argument to set the "bg" (background) to something other than "transparent" - if it is transparent, the previously plotted larger and encompassing polygon is still visible. I'm afraid that

Re: [R-sig-Geo] Problem with SpatialPolygons containing a hole

2009-01-29 Thread Hans-Jörg Bibiko
On 29.01.2009, at 13:08, Roger Bivand wrote: Set the pbg= argument to set the "bg" (background) to something other than "transparent" - if it is transparent, the previously plotted larger and encompassing polygon is still visible. I'm afraid that the documentation, which should be in ?"Spa

Re: [R-sig-Geo] Problem with SpatialPolygons containing a hole

2009-01-29 Thread Roger Bivand
On Thu, 29 Jan 2009, Hans-Jörg Bibiko wrote: Hi, I'm just preparing a SpatialPolygonsDataFrame for ISO3 = "PSE" which is missing in TM_BORDERS data. I have three polygons: p1 p2 p3 whereby p2 is a hole inside of p1. Then I did this: P1 <- Polygon(p1) P2 <- Polygon(p2) P3 <- Polygon(p3) ps

Re: [R-sig-Geo] Different Moran's I correlograms using correlog{ncf} and sp.correlogram{spdep}

2009-01-29 Thread Roger Bivand
On Thu, 29 Jan 2009, Xingli Giam wrote: Hello List, I have been bothered by this problem for the entire day, hope someone can give me a hand here. Thanks in advance for reading! It could be really simple and basic so hope you guys bear with it. We often plot Moran's I spatial correlograms t

[R-sig-Geo] Problem with SpatialPolygons containing a hole

2009-01-29 Thread Hans-Jörg Bibiko
Hi, I'm just preparing a SpatialPolygonsDataFrame for ISO3 = "PSE" which is missing in TM_BORDERS data. I have three polygons: p1 p2 p3 whereby p2 is a hole inside of p1. Then I did this: P1 <- Polygon(p1) P2 <- Polygon(p2) P3 <- Polygon(p3) pse <- list(P1,P2,P3) pseP <- checkPolygonsHoles

[R-sig-Geo] Different Moran's I correlograms using correlog{ncf} and sp.correlogram{spdep}

2009-01-29 Thread Xingli Giam
Hello List, I have been bothered by this problem for the entire day, hope someone can give me a hand here. Thanks in advance for reading! It could be really simple and basic so hope you guys bear with it. We often plot Moran's I spatial correlograms that contrast glm residuals and spatial model r

[R-sig-Geo] Different Moran's I correlograms using correlog{ncf} and sp.correlogram{spdep}

2009-01-29 Thread Xingli Giam
Hello List, I have been bothered by this problem for the entire day, hope someone can give me a hand here. Thanks in advance for reading! It could be really simple and basic so hope you guys bear with it. We often plot Moran's I spatial correlograms that contrast glm residuals and spatial model r

Re: [R-sig-Geo] memory issue on R with Linux 64

2009-01-29 Thread Roger Bivand
On Thu, 29 Jan 2009, Robert Hijmans wrote: Herry, This is how you can do it in package{raster}. (revision 209; a build should be available within 24 hours). Following Edzer's example: require(raster) library(maptools) # read a SpatialPolygonsDataFrame nc <- readShapePoly(system.file("shapes/

Re: [R-sig-Geo] memory issue on R with Linux 64

2009-01-29 Thread Robert Hijmans
Herry, This is how you can do it in package{raster}. (revision 209; a build should be available within 24 hours). Following Edzer's example: require(raster) library(maptools) # read a SpatialPolygonsDataFrame nc <- readShapePoly(system.file("shapes/sids.shp", package="maptools")[1], proj4