Package: r-cran-hmisc
Version: 3.3-2-1
Severity: normal

Hi,

The errbar() function does not work correctly on a log axis, due
to the code assuming the axis is linear.

Here is a tiny testcase to demonstrate:

library(Hmisc)
x <- c(0.03,0.1,0.3,1,3,10,30)
y <- c(10,6,2,0.8,0.3,0.06,0.021)
sd <- c(5,2,1,0.3,0.1,0.2,0.08)
par(mfrow=c(2,1))
errbar(x,y,y-sd,y+sd)
errbar(x,y,y-sd,y+sd, log="x")

It should be possible for the code to check if par xlog=T and then
adjust the x±cap to cope with the log scale.


Regards,
Roger

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.18-3-powerpc
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages r-cran-hmisc depends on:
ii  libc6                   2.5-11           GNU C Library: Shared libraries
ii  libgcc1                 1:4.2-20070609-1 GCC support library
ii  r-base-core             2.5.1~20070614-1 GNU R core of statistical computin
ii  r-cran-acepack          1.3.2.2-1        GNU R package for regression trans
ii  r-cran-chron            2.3-11-1         GNU R package for chronologically 
ii  r-cran-cluster          1.11.7-1         GNU R package for cluster analysis
ii  r-cran-lattice          0.15-8-1         GNU R package for 'Trellis' graphi

r-cran-hmisc recommends no packages.

-- no debconf information

Reply via email to