David Lloyd
2007-Aug-01 11:39 UTC
[R] "Cut marks" on a plot's y-axis to indicate it is a truncated axis
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 Thanks for any help, DaveL Study to be a Paralegal at a school near you. Click here to get free info now. <http://tagline.bidsystem.com/fc/Ioyw36XJIG4kS9LX6hifX0P6pUB4A2ryL6hnXlr q7nFKzLeaHmCnIS/> <span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!</font></font></span> [[alternative HTML version deleted]]
David Lloyd
2007-Aug-01 11:50 UTC
[R] "Cut marks" on a plot's y-axis to indicate it is a truncated axis
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 Thanks for any help, DaveL Free information on becoming a Legal Assistant. Click Now! <http://tagline.bidsystem.com/fc/Ioyw36XKKhNb648GlNi10yhQt8Hj9egcisvXgKE K8RmtgEBA8RI05g/> <span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!</font></font></span> [[alternative HTML version deleted]]
Jim Lemon
2007-Aug-01 12:01 UTC
[R] "Cut marks" on a plot's y-axis to indicate it is a truncated axis
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
John Kane
2007-Aug-01 13:17 UTC
[R] "Cut marks" on a plot's y-axis to indicate it is a truncated axis
--- David Lloyd <DavidLloyd at mail2lloyd.com> 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 > > Thanks for any help, > > DaveLI think Jim Lemon's anwsered the question but why do you need a cut? There is no need to have a zero on the plot unless it is some quirky style matter for the journal. Any literate scientific reader should be able to understand that the y-axis runs from .5 to 1 or whatever. Adding a zero point and the || simply is what Tufte would call chart junk.
Apparently Analagous Threads
- Identifying points in a plot that have duplicate values
- (Censboot, Z-score, Cox) How to use Z-score as the statistic within censboot?
- (coxph, se) Obtaining standard errors of coefficients from coxph to store
- Loop and loop output [Cox model, for, function, loglik]
- multiple plots and looping assistance requested (single plot)