Dear R-list, I would like to generate an intensity map based on a x * y matrix. Each point in the matrix should get plotted at the coordinate: x = column / y = row with a color-intensity (for example gray-value) based on the actual value of this point. Is there a convenient package / function for this kind of plot? example data: x <- matrix(rnorm(100*100, 0, 2), 100, 100) thanks!
See ?image Uwe Ligges On 03.10.2011 19:05, Martin Batholdy wrote:> Dear R-list, > > > I would like to generate an intensity map based on a x * y matrix. > > Each point in the matrix should get plotted at the coordinate: x = column / y = row with > a color-intensity (for example gray-value) based on the actual value of this point. > > Is there a convenient package / function for this kind of plot? > > > > example data: > x<- matrix(rnorm(100*100, 0, 2), 100, 100) > > > thanks! > > ______________________________________________ > R-help at 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.
thanks! On 03.10.2011, at 19:11, Uwe Ligges wrote:> See ?image > > Uwe Ligges > > > On 03.10.2011 19:05, Martin Batholdy wrote: >> Dear R-list, >> >> >> I would like to generate an intensity map based on a x * y matrix. >> >> Each point in the matrix should get plotted at the coordinate: x = column / y = row with >> a color-intensity (for example gray-value) based on the actual value of this point. >> >> Is there a convenient package / function for this kind of plot? >> >> >> >> example data: >> x<- matrix(rnorm(100*100, 0, 2), 100, 100) >> >> >> thanks! >> >> ______________________________________________ >> R-help at 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.