[R] Plotting lines and points on the second plot when using gap.plot in plotrix

From: michael watson (IAH-C) <michael.watson_at_bbsrc.ac.uk>
Date: Wed 19 Jul 2006 - 20:58:08 EST


My question is simple - the gap.plot function in the plotrix package allows users to draw graphs that have a broken axis. However, I want to then add a line to the "second" plot, but can't.


gap.plot(twogrp,rnorm(20),gap.bounds=c(8,16),gap.axis="x",xlab="X values",

       xtics=c(4,7,17,20),ylab="Y values",main="Plot gap on X axis")

# this doesn't work


# this does work


I somehow need to set the focus to the second plot so that I can draw lines and points on it.

Any help?


R-help@stat.math.ethz.ch 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. Received on Wed Jul 19 22:12:58 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 20 Jul 2006 - 00:17:57 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.