Bug 7668 - barplot: space makes beside=F
Summary: barplot: space makes beside=F
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Graphics (show other bugs)
Version: old
Hardware: All Linux-Debian
: P5 normal
Assignee: Jitterbug compatibility account
URL:
Depends on:
Blocks:
 
Reported: 2005-02-08 02:03 UTC by Jitterbug compatibility account
Modified: 2005-02-08 17:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jitterbug compatibility account 2005-02-08 02:03:18 UTC
From: o.medek@sh.cvut.cz
Full_Name: Ondrej Medek
Version: 2.0.1
OS: Linux/Debian Sarge
Submission from: (NULL) (147.32.127.204)


Hi,
I had a R version 1.5.1 and I used a 'barplot' with 'beside=T' and 'space' has
been vector of 8 numbers 'space=c(1,0.5,rep(c(0.5,-0.5),3))'. Then I upgraded to
the R 2.0.1 and my graphs are broken. If I use any vector of more than 2
elements for 'space' then the graph is drawn as 'beside=F' even if I specify
'beside=T'. 

In the previous version my graph was a graph of groups of eight bars separated
by a big spaces. Every group consisted of 4 pairs of bars separated by a small
space. It's impossible now.

Comment 1 Jitterbug compatibility account 2005-02-08 16:48:42 UTC
From: Uwe Ligges <ligges@statistik.uni-dortmund.de>
o.medek@sh.cvut.cz wrote:

> Full_Name: Ondrej Medek
> Version: 2.0.1
> OS: Linux/Debian Sarge
> Submission from: (NULL) (147.32.127.204)
> 
> 
> Hi,
> I had a R version 1.5.1 and I used a 'barplot' with 'beside=T' and 'space' has
> been vector of 8 numbers 'space=c(1,0.5,rep(c(0.5,-0.5),3))'. Then I upgraded to
> the R 2.0.1 and my graphs are broken. If I use any vector of more than 2
> elements for 'space' then the graph is drawn as 'beside=F' even if I specify
> 'beside=T'. 
> 
> In the previous version my graph was a graph of groups of eight bars separated
> by a big spaces. Every group consisted of 4 pairs of bars separated by a small
> space. It's impossible now.


This is not a bug. See ?barplot which tells us:

    space: [...] If height is a matrix and beside is TRUE,
           space may be specified by two numbers, where the
           first is the space between bars in the same group,
           and the second the space between the groups. [...]

and it works as described:

    barplot(matrix(1:10, 2), beside = TRUE, space = c(1, 7))


Uwe Ligges

Comment 2 Jitterbug compatibility account 2005-02-08 17:00:38 UTC
From: Martin Maechler <maechler@stat.math.ethz.ch>
Hi Ondrej,

can you give a very small *REPRODUCIBLE* example
of R code that worked in R 1.5.1 and doesn't work the same in R
2.0.1.

I know that we made some changes for barplot() on purpose,
documented it, announced it in NEWS, etc, etc.
So I'm sure it's not a bug.  

{ I'm also sure that your
    ``It's impossible now ''
  must be wrong. R is a full-fledged programming language, and in
  principle everything is possible :-)
}


>>>>> "Ondrej" == o medek <o.medek@sh.cvut.cz>
>>>>>     on Mon,  7 Feb 2005 21:03:19 +0100 (CET) writes:

    Ondrej> Full_Name: Ondrej Medek
    Ondrej> Version: 2.0.1
    Ondrej> OS: Linux/Debian Sarge
    Ondrej> Submission from: (NULL) (147.32.127.204)


    Ondrej> Hi, I had a R version 1.5.1 and I used a 'barplot'
    Ondrej> with 'beside=T' and 'space' has been vector of 8
    Ondrej> numbers 'space=c(1,0.5,rep(c(0.5,-0.5),3))'. Then I
    Ondrej> upgraded to the R 2.0.1 and my graphs are broken. If
    Ondrej> I use any vector of more than 2 elements for 'space'
    Ondrej> then the graph is drawn as 'beside=F' even if I
    Ondrej> specify 'beside=T'.

    Ondrej> In the previous version my graph was a graph of
    Ondrej> groups of eight bars separated by a big
    Ondrej> spaces. Every group consisted of 4 pairs of bars
    Ondrej> separated by a small space. It's impossible now.

Comment 3 Jitterbug compatibility account 2005-03-29 21:50:00 UTC
NOTES:
 Probably not a bug, but more info was requested
Comment 4 Jitterbug compatibility account 2005-03-29 23:49:34 UTC
Audit (from Jitterbug):
Tue Feb 22 20:42:48 2005	ripley	moved from incoming to Graphics
Tue Mar 29 17:49:34 2005	thomas	changed notes