Re: [R] matrix graph

From: Tony Plate <tplate_at_acm.org>
Date: Tue, 11 Dec 2007 14:12:54 -0700

Try these:

 > x <- matrix(rnorm(100), ncol=10)
 > persp(x)
 > contour(x)

Also, look at the R graph gallery: http://addictedtor.free.fr/graphiques/

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.475
> [3,] 0.401 0.506 0.310 0.650 0.822 0.448
> [4,] 0.548 0.625 0.883 0.825 0.945 0.637
> [5,] 0.544 0.746 0.823 0.877 0.861 0.642
> [6,] 0.262 0.399 0.432 0.620 0.711 0.404
>
> will be very grateful for hints.
>
> rob



R-help_at_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. Received on Tue 11 Dec 2007 - 21:16:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 11 Dec 2007 - 22:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.