[R] Pedigrees

Silvano Cesar da Costa silvano at uel.br
Thu Aug 16 17:58:34 CEST 2012


I am building several pedigrees and would like to construct the graphs
automatically.

I used the following program:

require(kinship2)
pedig = with(Dados, pedigree(id=iid, dadid=fid, momid=mid, sex=sex,
famid=famid, missid=0))

for(famid in 1:15){
  pedig[famid] <- pedig['famid']
  pdf(paste("plot", famid, ".pdf"))
  plot(pedig[famid])
  dev.off()
}
Error em `[.pedigreeList`(pedig, "famid") : Familiy famid not found

but is not working.

How to solve the problem?

Thanks,

---------------------------------------------
Silvano Cesar da Costa

Universidade Estadual de Londrina
Centro de Ciências Exatas
Departamento de Estatística

Fone: (43) 3371-4346



More information about the R-help mailing list