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.
On Aug 17, 2010, at 10:35 AM, szisziszilvi wrote:> > 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?Have you made the effort to work through the examples on the help page? The fourth example shows exactly how to do what you are requesting.> > 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.-- David Winsemius, MD West Hartford, CT
Reasonably Related Threads
- 3d data plot
- Which Durbin-Watson is correct? (weights involved) - using durbinWatsonTest and dwtest (packages car and lmtest)
- My very first loop!! I failed. May I have some start-up aid?
- My very first loop!! I failed. May I have some start-up aid?
- My very first loop!! I failed. May I have some start-up aid?