Re: [R] Y-lim minimum overrun in barplot

2013-06-04 Thread David Carlson
ailto:npra...@mednet.ucla.edu] Sent: Monday, June 3, 2013 12:31 PM To: dcarl...@tamu.edu Cc: r-help@r-project.org Subject: Re: [R] Y-lim minimum overrun in barplot Thank you for the three (!) solutions suggested. I found that the base subtraction trick worked well, but I investigated all three:

Re: [R] Y-lim minimum overrun in barplot

2013-06-03 Thread David Carlson
I believe you are looking for the offset= parameter. Consider the following: barplot(c(2, 3), ylim=c(1, 3)) barplot(c(2, 3), ylim=c(1, 3), offset=1) - David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77840-4352 -

Re: [R] Y-lim minimum overrun in barplot

2013-06-03 Thread Nicole Prause
Thank you for the three (!) solutions suggested. I found that the base subtraction trick worked well, but I investigated all three: offset, I found, referred to moving bars on the x-axis. Great for line plot jitter when they're overlapping, but not the problem I was trying to solve here. Sorry

Re: [R] Y-lim minimum overrun in barplot

2013-06-03 Thread Adams, Jean
Nikky, It is helpful if you provide a simplified version of your question with data. For example: # simplified example y <- c(2.2, 2.4, 2.35, 2.45) upper <- 0.17 lower <- upper # current plot, with default base of 0 b <- barplot(y, ylim=c(2, 3)) arrows(b, y+upper, b, y-lower, angle=90, code=3)