Re: [R] See what is inside a matrix

2010-09-09 Thread Greg Snow
801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Alaios > Sent: Thursday, September 09, 2010 1:23 AM > To: Rhelp > Subject: [R] See what is inside a matrix > > Hello everyone.. Is there any g

Re: [R] See what is inside a matrix

2010-09-09 Thread Dennis Murphy
Hi: One possibility is a heatmap, although there are other approaches. x <- matrix(sample(1:100, 1, replace = TRUE), nrow = 100) image(x) xx <- apply(x, 1, sort) # sorts the rows of x image(xx) # ggplot2 version: library(ggplot2) ggplot(melt(x), aes(x=X1, y=X2, fill=value)) + geom_tile() +

[R] See what is inside a matrix

2010-09-09 Thread Alaios
Hello everyone.. Is there any graphical tool to help me see what is inside a matrix? I have 100x100 dimensions matrix and as you already know as it does not fit on my screen R splits it into pieces. I would like to thank you in advance for your help Best Regards Alex [[alternat