The image function will plot a rectangle for each cell of a table with the color of the rectangle determined by the value of the rectangle. Any cells in the table that are NA will not produce a rectangle in the image plot.
Can you make that work for your plot? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] 801.408.8111 > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of [EMAIL PROTECTED] > Sent: Friday, October 17, 2008 10:44 PM > To: R-help@r-project.org > Subject: [R] Plot table of counts > > I have a data set which is comprised of counts, that is, the number of > times a mass spectrometer measured a particular mass at a particular > time (the rows and columns of the table). Is there a way to make a > plot so that it draws a square at the mass/time spot on the graphic if > there is a count and leave it empty if it's empty? > > ______________________________________________ > 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.