I've found one solution, which is to transform each matrix into a 1d
array. This gives me the output I wanted.
Grace
On 08/10/2013 09:55, Grace Garner wrote:
Dear all,
I'm using Windows 7, R version 2.15.0 and lattice_0.20-6.
I'm plotting observed data in lattice using wireframe(). I have 3
matrices of observed values (Temp,Dist,Time) and I'm using the formula
method (Temp~Dist*Time).
How do I instruct wireframe to colour the plot surface based on the
heights of my z data (Temp) only?
At present I do not understand how the colours in the colourkey relate
to either my z, x or y data.
I include below my code:
mycols<-colorRampPalette(c("dodgerblue", "firebrick"), space="rgb")
wireframe(Temp~Dist*Time,
shade=F, drape=T, colorkey = T, col.regions=mycols(200),
col="transparent")
Thank you,
Grace
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.