[R] "Raw" histogram plots

Frank E Harrell Jr f.harrell at vanderbilt.edu
Wed Feb 27 15:43:00 CET 2008


Andre Nathan wrote:
> On Wed, 2008-02-27 at 14:15 +1300, Peter Alspach wrote:
>> If I understand you correctly, you could try a barplot() on the result
>> of table().
> 
> Hmm, table() does the counting exactly the way I want, i.e., just
> counting individual values. Is there a way to extract the counts vs. the
> values from a table, so that I can pass them as the x and y arguments to
> plot()?
> 
> Thanks,
> Andre

Also take a lot at the Hmisc package's spike histogram-related functions 
such as histSpike and scat1d.

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list