Dear Ken,
>Can I create triangular plots with several groups included? Red squares for
>group one, blue circles for group two -- in the same triangular plot?
From now on, you can create triangular plots with several groups.
1. You need to download the new function "triangle.class". You can directly
read the corresponding R code from an Internet connection:
source("http://pbil.univ-lyon1.fr/R/donnees/triangle.class.R")
2. You also need the last version of the package so don't forget to update
your package ade4:
update.packages()
3. You can check the function with an example:
library(ade4)
data(euro123)
fac <- as.factor(rep(c("1978","1986","1997"),rep(12,3)))
tot <- rbind.data.frame(euro123$in78, euro123$in86, euro123$in97)
# by default
triangle.class(tot,fac)
# with color
triangle.class(tot,fac,col=c("red","blue","green"),csta=0,cpoi=2)
# with ellipse
triangle.class(tot,fac,cell=1.5,clab=2,csta=0.75)
The function triangle.class will be added to the next version of ade4.
Sébastien Ollier.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sébastien OLLIER
Laboratoire de biométrie et biologie évolutive
UMR 5558
Bâtiment 741 - 711
43, boulevard du 11 novembre 1918
69622 VILLEURBANNE Cedex
Tel: (33) (0)4 72 43 29 35
Fax : (33) (0)4 72 43 13 88
ollier@biomserv.univ-lyon1.fr
-------------------------------------------------------------------------------------------------------------------------------------------
This archive was generated by hypermail 2b30 : Tue Sep 07 2004 - 13:30:56 MEST