[R] "Cut marks" on a plot's y-axis to indicate it is a truncated axis

Jim Lemon jim at bitwrit.com.au
Wed Aug 1 14:01:49 CEST 2007


David Lloyd wrote:
> Hi,
> 
> I've plotted a Kaplan-Meier curve but the curves only range from 0.7 to
> 1 on the y-axis. Therefore I have used: -
> 
> ylim=c(0.7,1)
> 
> [although I think convention dictates that you plot 0.5 to 1 to show the
> median? A few papers I've read have done this]??
> 
> BUT, I would like a symbol like // (but rotated 90 degrees) to indicate
> that the y-axis has been truncated. I'd need to be able to specify
> exactly where on the axis to put the symbol as well.
> 
> I couldn't find anything under "par" or "plot" for doing this
> 
Hi David,
Try looking for axis.break in the plotrix package.

Jim



More information about the R-help mailing list