Is it possible to make disappear the id numbers from scatter.dudi (mc analysis) ? 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) Thank you very much ! Mauricio
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)
Please send your emails related to ade4 to the ade4 list and not to
RHelp (see mailing list address in):
packageDescription("ade4")
a solution to your problem:
> scatter.dudi(dat.acm,clab.row=0)
> scatter.dudi(dat.acm,clab.col=0)
Carlos Mauricio Cardeal Mendes wrote:
>Is it possible to make disappear the id numbers from scatter.dudi (mc
>analysis) ?
>
>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)
>
>Thank you very much !
>Mauricio
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>
>
>
>
--
St?phane DRAY (dray at biomserv.univ-lyon1.fr )
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - Lyon I
43, Bd du 11 Novembre 1918, 69622 Villeurbanne Cedex, France
Tel: 33 4 72 43 27 57 Fax: 33 4 72 43 13 88
http://www.steph280.freesurf.fr/