# \dontshow{
D <- simgeno(p=20, n=10, k= 3, adjacent = 1, alpha = 0.06 , beta = 0.3)
out <- netsnp(data = D$data, n.rho= 2, ncores= 1)
plot(out)
sel <- selectnet(out)
# }
# \donttest{
data(CviCol)
out <- netsnp(CviCol); out
plot(out)
#select optimal graph
epi <- selectnet(out)
plot(epi, vis="CI", xlab="markers", ylab="markers",
n.mem = c(24,14,17,16,19), vertex.size=4)
#Visualize interactive plot of the selected network
#Different colors for each chromosome
cl <- c(rep("red", 24), rep("white",14), rep("tan1",17),
rep("gray",16), rep("lightblue2",19))
plot(epi, vis="interactive", vertex.color= cl)
#Partial correlations between markers on genome
image(as.matrix(epi$par.cor), xlab="markers", ylab="markers", sub="")
# }
Run the code above in your browser using DataLab