[R] y axis in histograms

Marc Schwartz (via MN) mschwartz at mn.rr.com
Mon Oct 17 17:18:42 CEST 2005


On Mon, 2005-10-17 at 16:51 +0200, Jorge Gaspar Sanz Salinas wrote:
> Hi all,
> 
> This is my first post, I hope you will help me.
> 
> I've some data to present with histograms. I have few values with almost 99% of 
> the frequencies (thousands) and some other values with low frequencies (below 
> one hundred) that I want to emphasize. I think if I could present the logarithms 
> of the frequencies, these could be presented in a more convenient way, but I 
> don't know how to deal with this.
> 
> Thanks, and sorry for my English


If you are plotting the counts, you should probably look at barplot(),
which as of R version 2.2.0 supports log scale axes (ie. log = "y").

See ?barplot for more information.

HTH,

Marc Schwartz




More information about the R-help mailing list