Re: [R] matrix graph

2007-12-12 Thread Julian Burgos
The basic functions you need are image() contour() although I like better the plot.surface() function in the 'fields' package. Julian threshold wrote: > Hi All, simple question: > do you know how to graph the following object/matrix in a 'surface manner': > > [,1] [,2] [,3]

Re: [R] matrix graph

2007-12-11 Thread Tony Plate
Try these: > x <- matrix(rnorm(100), ncol=10) > persp(x) > contour(x) Also, look at the R graph gallery: http://addictedtor.free.fr/graphiques/ -- Tony Plate threshold wrote: > Hi All, simple question: > do you know how to graph the following object/matrix in a 'surface manner': > >

Re: [R] matrix graph

2007-12-11 Thread Dylan Beaudette
On Tuesday 11 December 2007, threshold wrote: > Hi All, simple question: > do you know how to graph the following object/matrix in a 'surface manner': > > [,1] [,2] [,3][,4] [,5][,6] > [1,] -0.154 -0.065 0.129 0.637 0.780 0.221 > [2,] 0.236 0.580 0.448 0.729 0.859 0.47

[R] matrix graph

2007-12-11 Thread threshold
Hi All, simple question: do you know how to graph the following object/matrix in a 'surface manner': [,1] [,2] [,3][,4] [,5][,6] [1,] -0.154 -0.065 0.129 0.637 0.780 0.221 [2,] 0.236 0.580 0.448 0.729 0.859 0.475 [3,] 0.401 0.506 0.310 0.650 0.822 0.448 [4,] 0.54