# NOT RUN {
data(grav)
library(qtl)
grav <- calc.genoprob(grav, step=1)
grav <- reduce2grid(grav)
# we're going to subset the phenotypes
phecol <- seq(1, nphe(grav), by=5)
# the times were saved as an attributed
times <- attr(grav, "time")[phecol]
# genome scan
out <- scanone(grav, phe=phecol, method="hk")
# }
# NOT RUN {
# plot with qualitative labels on y-axis
iplotMScanone(out)
# }
# NOT RUN {
# }
# NOT RUN {
# plot with quantitative y-axis
iplotMScanone(out, times=times)
# }
# NOT RUN {
# estimate QTL effect for each time point at each genomic position
eff <- estQTLeffects(grav, phe=seq(1, nphe(grav), by=5), what="effects")
# }
# NOT RUN {
# plot with QTL effects included (and with quantitative y-axis)
iplotMScanone(out, effects=eff, times=times,
chartOpts=list(eff_ylab="QTL effect", eff_xlab="Time (hrs)"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab