[R] using color palette in persp

szisziszilvi sziszi.szilvi at gmail.com
Tue Aug 17 16:35:15 CEST 2010


Hello!

I am using persp to get a plot of a 32x48 matrix.
data <- as.matrix(read.table(file="mySample.dat"))
persp(data)

And I'm having trouble with trying to give a z-dependent palette to it like
rainbow (or any built in one would do). How to combine that with the "col"
argument?

nice day
Szilvi

-- 
View this message in context: http://r.789695.n4.nabble.com/using-color-palette-in-persp-tp2328464p2328464.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list