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.