[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



  
[[alternative HTML version deleted]]

__
R-help@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.


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() +
  scale_fill_gradientn(colour = terrain.colors(10))

See the online help page http://had.co.nz/ggplot2/scale_gradientn.html
for several examples of choosing color ranges in scale_fill_gradientn(). To
get similar control over image, change the col = argument according to the
description on the help page of image - ?image .

Another alternative is an enhanced heatmap function in package gplots. I'll
leave that to you to investigate...

HTH,
Dennis

On Thu, Sep 9, 2010 at 12:22 AM, Alaios ala...@yahoo.com wrote:

 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




[[alternative HTML version deleted]]

 __
 R-help@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.


[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] See what is inside a matrix

2010-09-09 Thread Greg Snow
The image function will create a plot with the values transformed to colors. Or 
the View function (note the capitol V) will let you look at it in a spreadsheet 
like window with scrollbars.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
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 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
 
 
 
 
   [[alternative HTML version deleted]]
 
 __
 R-help@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.

__
R-help@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.