Re: [R] Bug in gap.plot

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Fri, 25 Jul 2008 20:47:22 +1000

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



R-help_at_r-project.org 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 Fri 25 Jul 2008 - 10:46:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 Jul 2008 - 11:32:12 GMT.

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

list of date sections of archive