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
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
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:
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
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
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(),
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