Re: [R] barp {plotrix} Start bars at 0 with a vector of positive values

2014-06-14 Thread Pascal Oettli
Hi Jim, Yes, it seems to work. Thanks. Regards, Pascal On Sat, Jun 14, 2014 at 2:03 PM, Jim Lemon j...@bitwrit.com.au wrote: On Sat, 14 Jun 2014 12:57:12 PM you wrote: Hi Jim, I tried your fix. This one works: barp(c(2,3,4,5,6,7,8), ylim=c(-10,10)) This one fails:

[R] barp {plotrix} Start bars at 0 with a vector of positive values

2014-06-13 Thread Pascal Oettli
Dear list, Please consider the following example: library(plotrix) barp(c(2,3,4,5,6,7,8), ylim=c(-10,10)) How to force the bars to start at 0? I could not find the way to do it. Regards, Pascal __ R-help@r-project.org mailing list

Re: [R] barp {plotrix} Start bars at 0 with a vector of positive values

2014-06-13 Thread Jim Lemon
On Fri, 13 Jun 2014 06:50:59 PM Pascal Oettli wrote: Dear list, Please consider the following example: library(plotrix) barp(c(2,3,4,5,6,7,8), ylim=c(-10,10)) How to force the bars to start at 0? I could not find the way to do it. Hi Pascal, You are right, I had not considered the

Re: [R] barp {plotrix} Start bars at 0 with a vector of positive values

2014-06-13 Thread Jorge I Velez
Hi Pascal, Perhaps I am missing something, but what about changing passing ylim = c(0, 10) to barp()? Best, Jorge.- On Fri, Jun 13, 2014 at 7:50 PM, Pascal Oettli kri...@ymail.com wrote: Dear list, Please consider the following example: library(plotrix) barp(c(2,3,4,5,6,7,8),

Re: [R] barp {plotrix} Start bars at 0 with a vector of positive values

2014-06-13 Thread Pascal Oettli
Hi Jim, Thank you for the suggestion. I will try it. Pascal On Fri, Jun 13, 2014 at 7:09 PM, Jim Lemon j...@bitwrit.com.au wrote: On Fri, 13 Jun 2014 06:50:59 PM Pascal Oettli wrote: Dear list, Please consider the following example: library(plotrix) barp(c(2,3,4,5,6,7,8), ylim=c(-10,10))

Re: [R] barp {plotrix} Start bars at 0 with a vector of positive values

2014-06-13 Thread Pascal Oettli
Hi Jorge, It is in order to have different barplots with the same range of limits, to keep them easily comparable. Some have negative values, some others no. Pascal On Fri, Jun 13, 2014 at 7:11 PM, Jorge I Velez jorgeivanve...@gmail.com wrote: Hi Pascal, Perhaps I am missing something, but

Re: [R] barp {plotrix} Start bars at 0 with a vector of positive values

2014-06-13 Thread Pascal Oettli
Hi Jim, I tried your fix. This one works: barp(c(2,3,4,5,6,7,8), ylim=c(-10,10)) This one fails: barp(c(2,3,4,5,6,7,8)) Regards, Pascal On Fri, Jun 13, 2014 at 7:09 PM, Jim Lemon j...@bitwrit.com.au wrote: On Fri, 13 Jun 2014 06:50:59 PM Pascal Oettli wrote: Dear list, Please consider the

Re: [R] barp {plotrix} Start bars at 0 with a vector of positive values

2014-06-13 Thread Jim Lemon
On Sat, 14 Jun 2014 12:57:12 PM you wrote: Hi Jim, I tried your fix. This one works: barp(c(2,3,4,5,6,7,8), ylim=c(-10,10)) This one fails: barp(c(2,3,4,5,6,7,8)) Regards, Pascal Hi Pascal, Right again. This seems to work for both and I think handles the problem correctly: