Re: [R-sig-Geo] Changing colour gradient in Spatstat surface plot

2008-04-30 Thread Mulholland, Tom
# Rogers suggestion was library(RColorBrewer) bl5 <- brewer.pal(5, "Blues") mypal <- colorRampPalette(bl5) # but he was saying any method of getting a list of colours is OK rev(mypal(256)) rainbow(256) colorRampPalette(c("lightblue","navy"))(256) # then your example library(spatstat)

[R-sig-Geo] Colouring hatch lines

2008-04-02 Thread Mulholland, Tom
I might be having finger problems, but I have been unable to get R to overlay coloured hatching on one of my plots. This code replicates my problem which I would have thought would have given me vertical yellow lines. require(maptools) require(classInt) columbus <- readShapePoly(system.file("etc/

Re: [R-sig-Geo] Can you query points with a polygon?

2006-12-12 Thread Mulholland, Tom
Yes there is more than one. I can't remember when I made the decision but I recall doing some speed tests and I picked inside.owin in the spatstat package. I think splancs and spatial might have their own versions as well. The overlay function in sp works. I think I found this too slow for what

[R-sig-Geo] Saving jpeg world files

2006-11-28 Thread Mulholland, Tom
I am beginning to get a little bit bog eyed with the myriad of options there are within the various spatial packages. I am trying to find ways of porting the results I get within R into a GIS environment and I can't seem to see anything that would let me write a jpeg file with an appropriate wor

Re: [R-sig-Geo] problems loading spproj library for transform()

2006-05-24 Thread Mulholland, Tom
I'm sure Roger or someone will come up with exactly what is going on. A couple of weeks ago I had some problems with spproj. I can't recall all the things that I did but it seemed to be associated with me installing 2.3. I noted that when I tried to update my packages that the sp repository didn

Re: [R-sig-Geo] Convert esri shape files to esri ascii grid from R

2006-03-09 Thread Mulholland, Tom
I didn't know how to do this offhand, but a little research soon found a way. So I think you need to search the existing resources before asking your question as my basic search from R >RSiteSearch("esri grid") returned write.asciigrid as the first response. Since I routinely read shapefiles