Skip to content
Prev 140541 / 398506 Next

histogram for integer data

Thanks!

Yes, but I also want to be able to condition easily hence
histogram(...), not plot


-----Original Message-----
From: Don MacQueen [mailto:macq at llnl.gov] 
Sent: Thursday, March 27, 2008 3:55 PM
To: Rogard, Erwann R&D/US/EXT; r-help at r-project.org
Subject: Re: [R] histogram for integer data

You might consider something based on the concept of:

   y <- table( x)
   plot( as.numeric(names(y)) , y, type='h')

-Don
At 2:59 PM -0400 3/27/08, <Erwann.Rogard at sanofi-aventis.com> wrote:
--
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
925-423-1062