[R] Plot table of counts
Greg.Snow at imail.org
Sat Oct 18 18:12:27 CEST 2008
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
greg.snow at imail.org
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of pofigster at gmail.com
> Sent: Friday, October 17, 2008 10:44 PM
> To: R-help at 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 at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help