[R] Plotting lines and points on the second plot when usinggap.plot in plotrix
michael watson (IAH-C)
michael.watson at bbsrc.ac.uk
Wed Jul 19 13:11:04 CEST 2006
I've answered my own question, the x-values of the line/points I want to
plot must be adjusted by the gap size
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of michael watson
Sent: 19 July 2006 11:58
To: r-help at stat.math.ethz.ch
Subject: [R] Plotting lines and points on the second plot when
usinggap.plot in plotrix
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.
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.
R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help