Re: [R] heatmap plot

2009-07-21 Thread Michael Knudsen
2009/7/21 Markus Mühlbacher muehli...@yahoo.com: So just that I understand right. x and y are the scalings of the x and y axis and the matrix represents the color of the points at each gridpoint? Precisely! Try ?image for more details. -- Michael Knudsen micknud...@gmail.com

Re: [R] heatmap plot

2009-07-21 Thread Michael Knudsen
2009/7/21 Markus Mühlbacher muehli...@yahoo.com: I tried to add white to the colors, but this did not change my problem. Still the values of the diagonal seem to be different from those occurring in the matrix. Or in other words all squares of the diagonal should have to SAME color! If

[R] heatmap plot

2009-07-20 Thread Markus Mühlbacher
Dear R community! I am trying to create a heatmap based on the following data. As you can see the diagonal (0,0 to 10,10) is always 0). If I run the heatmap command like i posted it I get a graph with horizontal lines. What is my mistake? heatmap(activity.matrix, Rowv = NA, Colv = NA,

Re: [R] heatmap plot

2009-07-20 Thread Michael Knudsen
2009/7/20 Markus Mühlbacher muehli...@yahoo.com: What is my mistake? I don't know about the heatmap function, but I have often used 'image' with 'heat.colors' without any problems. There is a nice example here: http://addictedtor.free.fr/graphiques/graphcode.php?graph=20 It should be fairly

Re: [R] heatmap plot

2009-07-20 Thread Michael Knudsen
2009/7/20 Markus Mühlbacher muehli...@yahoo.com: Gives the attached image. Again I am missing the white diagonal. Is there some kind of sorting that I do not consider? Maybe col=c(white,heat.colors(100)) will do the trick? -- Michael Knudsen micknud...@gmail.com

Re: [R] heatmap plot

2009-07-20 Thread 1Rnwb
since heatmap is a graphic image it needs the graphics library. you can see these two in the examples for heatmap. require(graphics); require(grDevices) Markus Mühlbacher wrote: Dear R community! I am trying to create a heatmap based on the following data. As you can see the diagonal