## simulate small autooctaploid data set
plotTheoretical(8, proportion=c(0.7,0.2,0.1),n.individuals=50)
a1 <- sim.autoMarkers(8,c(0.7,0.2,0.1),n.markers=100,n.individuals=50)
##print(a1)
sr <- segregationRatios(a1$markers)
x <- setModel(3,8)
## fit simple model in one hit and summarise
## Not run:
# x.run <- runSegratioMM(sr, x, burn.in=200, sample=500)
# print(x.run)
#
# ## plot fitted model using 'plotFitted'
# plotFitted(sr, x.run$summary)
# a.plot <- plotFitted(sr, x.run$summary, density.plot=TRUE)
# print(a.plot)
# ## or the easier way
# plot(x.run, theoretical=TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab