[R] discontinuous y-axis (ordinate with a -/ /-)

Marc Schwartz MSchwartz at mn.rr.com
Thu Nov 17 14:30:48 CET 2005


On Thu, 2005-11-17 at 11:40 +0100, jobst landgrebe wrote:
> Dear List,
> 
> can anyone tell me how to plot a discontinuous y-axis (ordinate
> with a -/ /- "break sign") to fit in data with a wide range without the
> need of logarthimic transformation? My data are distributed like this:
> 
> (abscissa: 1:10)
> 
> 1. vector to plot
> 
>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
>   4.030   5.987   6.865  19.520  16.200  88.000
> 
> 2. vector to plot
> 
>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
>   0.000   2.112   2.620   2.976   4.303   7.030 
> 
> I have just this one 88 outlier and cannot log-transform the data
> (reviewers want plain data).
> 
> I would be glad to get help.
> 
> Yours sincerely,
> 
> Jobst Landgrebe


See this post by Jim Lemon, whose plotrix package on CRAN has an
axis.break() function authored by Jim and Ben Bolker:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/56487.html

HTH,

Marc Schwartz




More information about the R-help mailing list