Skip to content

How to make a break on y-axis of a histogram chart using R?

3 messages · HongSheng Liao, Hadley Wickham, Jim Lemon

#
Attached is a histogram chart with a break on y-axis which my friend made
for me using phot shop.  Do anyone know how to make such a break using R?
Thanks in advance.

(See attached file: 2007 age distribution.doc)
Hongsheng (Hank) Liao, Ph.D.
Lab Manager
Center for Quantitative Fisheries Ecology
800 West 46th Street
Old Dominion University
Norfolk, Virginia 23508
Phone:757.683.4571
Fax:757.683.5293
#
It is possible to do this with R, but I really don't think it is
desirable because it can produce a very misleading graphic.  Why do
you want to introduce a break in the axis?

Hadley
On Mon, Mar 3, 2008 at 8:03 AM, HongSheng Liao <HLiao at odu.edu> wrote:

  
    
#
HongSheng Liao wrote:
Hi Hank,
As your illustration didn't make it through the R malware filter, I can 
only say that gap.plot in the plotrix package _might_ do what you want.
As Hadley has noted, make sure that it shows what you want to show.

Jim