Thank you for your suggestions - image() produced a plot that worked, I'll be trying out all these other options as well.
----------------------------------------- Mark Ewing On Sun, Oct 19, 2008 at 4:03 AM, Jim Lemon <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >> 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? >> >> >> > Hi pofigster, > You can do this with color2D.matplot in the latest version of plotrix > (2.4-8) that has just been uploaded (may take a day or two to appear): > > color2D.matplot(mydata,1,0,1) > > will produce a plot with purple rectangles at each number and white > (default, you can change it) rectangles where there are NAs. > > Jim > > [[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.