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. Best wishes, Art Roberts University of Washington Department of Medicinal Chemistry Seattle, WA 98195
This is a bug in that function which does not respect the type="" argument in the subsequent call to points() inetrnally. Please report such bugs in functions of contributed packages to the corresponding package maintainer. Best wishes, Uwe Ligges 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. > > Best wishes, > Art Roberts > University of Washington > Department of Medicinal Chemistry > Seattle, WA 98195 > > ______________________________________________ > 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.
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
Jim L: I tried your example under R 2.2.1, and sure enough it plotted points on the right-hand section. Sounds like a bug that got fixed in the newer versions. (BTW, I get a warning from plotrix about being built under 2.7, but it does seem to execute OK under 2.2.1). ------ example used was Xdata<-c(2,3,8,9,10) Ydata<-1:5 gap.plot(Xdata, Ydata,gap=c(5,6),gap.axis="x",type="l") --------- Carl