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

2008-05-01 Thread Graham Smith
MAIL PROTECTED] On Behalf Of Graham Smith > Sent: Wednesday, 30 April 2008 3:00 AM > To: r-sig-geo@stat.math.ethz.ch > Subject: Re: [R-sig-Geo] Changing colour gradient in Spatstat surface > plot > > Adrian > > Thanks for the reply > >> Here is an example

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

2008-04-30 Thread Mulholland, Tom
TECTED] On Behalf Of Graham Smith Sent: Wednesday, 30 April 2008 3:00 AM To: r-sig-geo@stat.math.ethz.ch Subject: Re: [R-sig-Geo] Changing colour gradient in Spatstat surface plot Adrian Thanks for the reply > Here is an example of the whole process, starting from a marked point > patt

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

2008-04-30 Thread Marcelino de la Cruz
Maybe this synthesis of both replies can help you: library(RColorBrewer) bl5 <- brewer.pal(5, "Blues") mypal <- colorRampPalette(bl5) library(spatstat) data(longleaf) Z <- smooth.ppp(longleaf) plot(Z) plot(Z, col=mypal(12)) #or plot(Z, col=rev(mypal(12))) Regards, Marcelino At 20:

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

2008-04-29 Thread Graham Smith
Adrian Thanks for the reply > Here is an example of the whole process, starting from a marked point > pattern and finishing with a colour image: > > library(spatstat) > data(longleaf) > Z <- smooth.ppp(longleaf) > plot(Z) > plot(Z, col=topo.colors(256)) This is what

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

2008-04-29 Thread adrian
Graham Smith <[EMAIL PROTECTED]> writes: > I have produced a smoothed surface plot of > water depths (depths as marks) in spatstat, but the default colours > are oranges and reds. How do I change these to blues. > Can I redifne the colours in terrain.colors() or topo.colors(), or do > I need to u

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

2008-04-28 Thread Roger Bivand
On Mon, 28 Apr 2008, Graham Smith wrote: With help from Marcelino. I have produced a smoothed surface plot of water depths (depths as marks) in spatstat, but the default colours are oranges and reds. How do I change these to blues. Can I redifne the colours in terrain.colors() or topo.colors(),

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

2008-04-28 Thread Graham Smith
With help from Marcelino. I have produced a smoothed surface plot of water depths (depths as marks) in spatstat, but the default colours are oranges and reds. How do I change these to blues. Can I redifne the colours in terrain.colors() or topo.colors(), or do I need to use rainbow(). Or is