[R-sig-Geo] function Persp

carocorrea ccorreac at ucentral.edu.co
Wed Jul 27 05:15:22 CEST 2011


Dear All, 

I am trying to visualize the surface of a kernel of density estimate. I
generate the density plot with "persp" but I couldn´t use the same colors
that in a density plot. 

...
M1=ppp(C1$CX,C1$CY,c(80000,106000),c(90000,129000),marks=ACTCIIU3)
den1=density(M1,1000)
persp(den1,theta = 20, phi = 30, main="Business Location Density",
colmap=c("darkblue","mediumblue","aquamarine3","aquamarine","mediumaquamarine","limegreen","green","greenyellow","Yellow","lightyellow","white"),border="black",
xlab="East",ylab="North",zlab="Industry Density")
....

So, I want that the colors are the same if I draw it:

plot(den1,cex=0.8,font =2)


Thanks, 

Carolina 

--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/function-Persp-tp6624658p6624658.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list