[R] Lattice z colours when using formula class
gxg627 at bham.ac.uk
Tue Oct 8 17:11:53 CEST 2013
I've found one solution, which is to transform each matrix into a 1d
array. This gives me the output I wanted.
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")
> shade=F, drape=T, colorkey = T, col.regions=mycols(200),
> Thank you,
More information about the R-help