Re: [R] break.axis all range of data
On 10/06/2011 12:31 AM, Heverkuhn Heverkuhn wrote: ..all the point from 8 to 13. On Wed, Oct 5, 2011 at 8:28 AM, Heverkuhn Heverkuhnheverk...@gmail.comwrote: The problem with that function is that it does not really separate the 2parts of the graph but it inserts , when style is gap, a blank strip that cover axis and points. So for example if a insert it at 8 and I set the gap of length 5 , it would cancel al the point from 8 to 10. ... I would like to increase the distance between x tick-marks 8 and 9, and not connect the points x=8 and x=9. Ah, I think I see what you want. You want an axis like this: axis(1,at=c(1:8,10:37),labels=1:36) and to get your points right, you would have to do something like: plot(c(1:8,10:37),1:36,xaxt=n) lines(1:8,1:8) lines(10:37,9:36) first. This is more or less the reverse of the gap.* functions in the plotrix package. Jim __ R-help@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.
Re: [R] break.axis all range of data
Thank you Jim It seems exactly what I was looking for :) Claudio On Thu, Oct 6, 2011 at 5:11 AM, Jim Lemon j...@bitwrit.com.au wrote: On 10/06/2011 12:31 AM, Heverkuhn Heverkuhn wrote: ..all the point from 8 to 13. On Wed, Oct 5, 2011 at 8:28 AM, Heverkuhn Heverkuhnheverk...@gmail.com* *wrote: The problem with that function is that it does not really separate the 2parts of the graph but it inserts , when style is gap, a blank strip that cover axis and points. So for example if a insert it at 8 and I set the gap of length 5 , it would cancel al the point from 8 to 10. ... I would like to increase the distance between x tick-marks 8 and 9, and not connect the points x=8 and x=9. Ah, I think I see what you want. You want an axis like this: axis(1,at=c(1:8,10:37),labels=**1:36) and to get your points right, you would have to do something like: plot(c(1:8,10:37),1:36,xaxt=**n) lines(1:8,1:8) lines(10:37,9:36) first. This is more or less the reverse of the gap.* functions in the plotrix package. Jim [[alternative HTML version deleted]] __ R-help@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.
Re: [R] break.axis all range of data
On 10/05/2011 09:52 AM, Heverkuhn Heverkuhn wrote: Hello R users, I have a plot type=b with x axis at=(1:36), I would like to increase the distance between x tick-marks 8 and 9, and not connect the points x=8 and x=9. I can do the second thing, setting type=p and then drawing the lines, but I don't know how to do the first. Plus, I was wondering if there was a function that allows to insert a gap without covering data point like break.axis does. Hi Heverkuhn, The axis.break function (plotrix) allows the user to insert a break mark on an axis with three styles (zigzag, slash and gap). From your question, I think you want one of the first two styles. Jim __ R-help@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.
Re: [R] break.axis all range of data
The problem with that function is that it does not really separate the 2parts of the graph but it inserts , when style is gap, a blank strip that cover axis and points. So for example if a insert it at 8 and I set the gap of length 5 , it would cancel al the point from 8 to 10. Thanks On Oct 5, 2011 5:14 AM, Jim Lemon j...@bitwrit.com.au wrote: On 10/05/2011 09:52 AM, Heverkuhn Heverkuhn wrote: Hello R users, I have a plot type=b with x axis at=(1:36), I would like to increase the distance between x tick-marks 8 and 9, and not connect the points x=8 and x=9. I can do the second thing, setting type=p and then drawing the lines, but I don't know how to do the first. Plus, I was wondering if there was a function that allows to insert a gap without covering data point like break.axis does. Hi Heverkuhn, The axis.break function (plotrix) allows the user to insert a break mark on an axis with three styles (zigzag, slash and gap). From your question, I think you want one of the first two styles. Jim [[alternative HTML version deleted]] __ R-help@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.
Re: [R] break.axis all range of data
..all the point from 8 to 13. On Wed, Oct 5, 2011 at 8:28 AM, Heverkuhn Heverkuhn heverk...@gmail.comwrote: The problem with that function is that it does not really separate the 2parts of the graph but it inserts , when style is gap, a blank strip that cover axis and points. So for example if a insert it at 8 and I set the gap of length 5 , it would cancel al the point from 8 to 10. Thanks On Oct 5, 2011 5:14 AM, Jim Lemon j...@bitwrit.com.au wrote: On 10/05/2011 09:52 AM, Heverkuhn Heverkuhn wrote: Hello R users, I have a plot type=b with x axis at=(1:36), I would like to increase the distance between x tick-marks 8 and 9, and not connect the points x=8 and x=9. I can do the second thing, setting type=p and then drawing the lines, but I don't know how to do the first. Plus, I was wondering if there was a function that allows to insert a gap without covering data point like break.axis does. Hi Heverkuhn, The axis.break function (plotrix) allows the user to insert a break mark on an axis with three styles (zigzag, slash and gap). From your question, I think you want one of the first two styles. Jim [[alternative HTML version deleted]] __ R-help@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.
[R] break.axis all range of data
Hello R users, I have a plot type=b with x axis at=(1:36), I would like to increase the distance between x tick-marks 8 and 9, and not connect the points x=8 and x=9. I can do the second thing, setting type=p and then drawing the lines, but I don't know how to do the first. Plus, I was wondering if there was a function that allows to insert a gap without covering data point like break.axis does. Thank you very much :) H. [[alternative HTML version deleted]] __ R-help@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.