Re: [R] ylim problem in barplot

2006-01-07 Thread Jim Lemon
Bliese, Paul D LTC USAMH wrote: When I use barplot but select a ylim value greater than zero, the graph is distorted. The bars extend below the bottom of the graph. Have a look at the gap.barplot function in the plotrix package. A new version (2.0.1) has just been uploaded and should

Re: [R] ylim problem in barplot

2006-01-06 Thread Martin Maechler
Ben == Ben Bolker [EMAIL PROTECTED] on Thu, 5 Jan 2006 19:21:48 + (UTC) writes: Ben Robert Baer rbaer at atsu.edu writes: Well, consider this example: barplot(c(-200,300,-250,350),ylim=c(-99,400)) It seems that barplot uses ylim and pretty to decide things about

[R] ylim problem in barplot

2006-01-05 Thread Bliese, Paul D LTC USAMH
R Version 2.2.0 Platform: Windows When I use barplot but select a ylim value greater than zero, the graph is distorted. The bars extend below the bottom of the graph. For instance the command produces a problematic graph. barplot(c(200,300,250,350),ylim=c(150,400)) Any help

Re: [R] ylim problem in barplot

2006-01-05 Thread Marc Schwartz
On Thu, 2006-01-05 at 14:01 +0100, Bliese, Paul D LTC USAMH wrote: R Version 2.2.0 Platform: Windows When I use barplot but select a ylim value greater than zero, the graph is distorted. The bars extend below the bottom of the graph. For instance the command produces a problematic

Re: [R] ylim problem in barplot

2006-01-05 Thread Ben Bolker
Bliese, Paul D LTC USAMH paul.bliese at us.army.mil writes: R Version 2.2.0 Platform: Windows When I use barplot but select a ylim value greater than zero, the graph is distorted. The bars extend below the bottom of the graph. The problem is that barplot() is really designed to

Re: [R] ylim problem in barplot

2006-01-05 Thread Ben Bolker
Ben Bolker bolker at ufl.edu writes: Bliese, Paul D LTC USAMH paul.bliese at us.army.mil writes: R Version 2.2.0 Platform: Windows When I use barplot but select a ylim value greater than zero, the graph is distorted. The bars extend below the bottom of the graph.

Re: [R] ylim problem in barplot

2006-01-05 Thread Martin Maechler
PaulB == Bliese, Paul D LTC USAMH [EMAIL PROTECTED] on Thu, 5 Jan 2006 14:01:17 +0100 writes: PaulB R Version 2.2.0 PaulB Platform: Windows PaulB When I use barplot but select a ylim value greater PaulB than zero, the graph is distorted. The bars extend PaulB below

Re: [R] ylim problem in barplot

2006-01-05 Thread Robert Baer
PaulB When I use barplot but select a ylim value greater PaulB than zero, the graph is distorted. The bars extend PaulB below the bottom of the graph. PaulB For instance the command produces a problematic graph. PaulB barplot(c(200,300,250,350),ylim=c(150,400)) Well, my

Re: [R] ylim problem in barplot

2006-01-05 Thread Ben Bolker
Robert Baer rbaer at atsu.edu writes: Well, consider this example: barplot(c(-200,300,-250,350),ylim=c(-99,400)) It seems that barplot uses ylim and pretty to decide things about the axis but does some slightly unexpected things with the bars themselves that are not just at the 'zero' end