Skip to content

vcd package, assoc()

6 messages · Nicolas Mazziotta, Uwe Ligges, David Meyer

#
Hello,

I am trying to use the extended assocplot() function: assoc(), from vcd 
package. Trouble is that it cannot even run its own examples on my 
installation. I get this output:

$> example(assoc)

assoc> data("HairEyeColor")

assoc> (x <- margin.table(HairEyeColor, c(1, 2)))
       Eye
Hair    Brown Blue Hazel Green
  Black    68   20    15     5
  Brown   119   84    54    29
  Red      26   17    14    14
  Blond     7   94    10    16

assoc> assoc(x)
Error in unit.c(mar[4], unit(1, "null"), mar[2], legend_width) :
        It is invalid to combine unit objects with other types


Version info output by citation("vcd") is 1.0-1.

Any idea about what's going wrong? 

Thanks for any help.
#
Nicolas Mazziotta wrote:
Works for me. Which version of R is this? R-2.4.0, R-patched or R-devel?

Uwe Ligges
#
R version is R 2.2.1 (kubuntu dapper package)

Le mercredi 06 d?cembre 2006 08:26, Uwe Ligges a ?crit?:

  
    
#
Nicolas Mazziotta wrote:
So update your outdated version of R at first!
At least to R-2.4.0, even better to R-2.4.0 patched which will soon 
become R-2.4.1.

Anyway, David, the vcd maintainer, is certainly going to fix the 
DESCRIPTION's "Depends" entry.

Best,
Uwe Ligges
#
Thanks for your help. And sorry for not having noticed that kubuntu dapper 
packages were very outdated.

This might help other kubuntu dapper users:

- add this line to /etc/apt/sources.list

deb http://cran.R-project.org/bin/linux/ubuntu dapper/

- uninstall all previously installed r packages added via apt (don't 
just "update" them);

- update your installation by reinstalling the packages.

vcd package now works.

Le mercredi 06 d?cembre 2006 08:42, vous avez ?crit?:

  
    
#
Yes, he will :)

Thanks, Uwe!

David

Uwe Ligges schrieb: