[R] Graphical representation of a matrix ?
Jonathan Baron
baron at cattell.psych.upenn.edu
Thu Jan 3 19:34:30 CET 2002
Another way to represent matrices is matplot. If you use the
type="l" option, it plots parallel lines, one for each column.
(So you need to t() the matrix if you want the rows.)
You can also use lines() over and over, probably with apply()
[but I haven't tried that since matplot does everything I need].
Another thing is plot.table(). You can convert the matrix to a
table and use this. The result is very nice. Try also col=T for
an option.
Jon Baron
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list