## Not run:
# ## load simulated data
# ## markers have fixed differences, with
# ## alleles coded as 'P1' and 'P2'
# data(AdmixDataSim1)
# data(LociDataSim1)
#
# ## use prepare.data to produce introgress.data
# introgress.data<-prepare.data(admix.gen=AdmixDataSim1,
# loci.data=LociDataSim1,
# parental1="P1", parental2="P2", pop.id=FALSE,
# ind.id=FALSE, fixed=TRUE)
#
# ## estimate hybrid index
# hi.index<-est.h(introgress.data=introgress.data,
# loci.data=LociDataSim1, fixed=TRUE, p1.allele="P1",
# p2.allele="P2")
#
# ## produce image plot of marker ancestry
# mk.image(introgress.data=introgress.data, loci.data=LociDataSim1,
# marker.order=NULL, hi.index=hi.index, ind.touse=NULL,
# loci.touse=NULL, ylab.image="Individuals", main.image="",
# xlab.h="population 2 ancestry", col.image=NULL,
# pdf=TRUE, out.file="image.pdf")
# ## End(Not run)
Run the code above in your browser using DataLab