# NOT RUN {
data(GIMAP5)
#Now do a lattice plot with LDheatmaps in the panels
library(lattice)
pop<-GIMAP5$subject.support$pop
n<-nrow(GIMAP5$snp.data)
xyplot(1:n ~ 1:n | pop, type="n", scales=list(draw=FALSE), xlab="", ylab="",
panel=function(x, y, subscripts,...) {
LDheatmap(GIMAP5$snp.data[subscripts,],GIMAP5$snp.support$Position,
newpage=FALSE)})
rm(pop,n)
# }
Run the code above in your browser using DataLab