[R] Bug in gap.plot

Jim Lemon jim at bitwrit.com.au
Fri Jul 25 12:47:22 CEST 2008


On Thu, 2008-07-24 at 20:19 -0700, Arthur Roberts wrote:
> Hi, all
> 
> I am trying to make a plot with a axis break and I want the whole plot  
> to be line, not points.  However, when I execute the following command  
> half of the graph is points and the other lines.
> 
> gap.plot(Xdata, Ydata,gap=c(5,6),gap.axis="x",type="l")
> 
> I think it might be a bug in plotrix.  I would greatly appreciate your  
> input.  If there is another way to do it, I would greatly appreciate it.
> 
Hi Art,
I don't know what your data look like, but I tried this:

Xdata<-c(2,3,8,9,10)
Ydata<-1:5
gap.plot(Xdata, Ydata,gap=c(5,6),gap.axis="x",type="l")

and it seemed to work fine in R-2.7.1 on Linux.

Jim



More information about the R-help mailing list