A few ideas:

Make a log-scale y-axis like:
hist(my.data,...,log="y")

argument yaxp can help make the ticks look pretty...see ?par.

Or use various functions from the package `plotirx': axis.break and
gap.barplot might be helpful.

For those functions, you'll probably need to get your frequencies from the
histogram, something like:

my.freq <- hist(my.data,...,plot=FALSE)$counts

you may also need to play with the x-axis tick labels to actually denote the
correct bin for your frequencies.

Good luck, hope that helps--
Andy



On Mon, May 31, 2010 at 10:49 AM, Aarne Hovi <aarne.hovi@helsinki.fi> wrote:

>
> Hi,
>
> I'm trying to create a histogram with R. The problem is that the frequency
> is high for a couple of x-axis categories (e.g. 1500) and low for most of
> the x-axis categories (e.g. 50)
> http://r.789695.n4.nabble.com/file/n2237476/LK3_hist.jpg . When I create
> the
> histogram, it is not very informative, because only the high frequencies
> can
> be seen clearly. Is there any way I could cut the y-axis from the middle so
> that the y-axis values ranged for example from 0 to 300, and then again
> from
> 900 to 1500?
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Y-axis-range-in-histograms-tp2237476p2237476.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]

