[R] mca id numbers

bady at univ-lyon1.fr bady at univ-lyon1.fr
Thu May 4 09:54:07 CEST 2006


hi, hi all,


> Is it possible to make disappear the id numbers from scatter.dudi (mc
> analysis)  ?

yes :)

>
> a <- as.factor(c(1, 2, 3, 2, 1))
> b <- as.factor(c(3, 2, 3, 1, 1))
> x <- as.factor(c(1, 2, 2, 1, 3))
> y <- as.factor(c(2, 2, 3, 1, 1))
>
> dat <- data.frame(a=a, b=b,x=x,y=y)
> summary(dat)
> dat
> require(ade4)
> dat.acm <- dudi.acm(dat, scann = FALSE, nf = 2)
> scatter.dudi(dat.acm)

# here are two propositions:

# first solution
scatter.dudi(dat.acm,clab.row=0)

# second solution
s.arrow(dat.acm$c1, xax=1, yax=2)
s.label(dat.acm$li, xax=1, yax=2, clabel=0,cpoint=1.5, add.p=T)
add.scatter.eig(dat.acm$eig, dat.acm$nf, xax=1, yax=2, posi = "top", ratio =
1/4)


regrads,

Pierre





--------------------------------------------------------------------------
Ce message a été envoyé depuis le webmail IMP (Internet Messaging Program)




More information about the R-help mailing list