View source: R/phyloqtl_scan.R
plot.scanPhyloQTL | R Documentation |
Plot the LOD curves for each partition for a genome scan with a single
diallelic QTL (the
output of scanPhyloQTL
).
## S3 method for class 'scanPhyloQTL'
plot(x, chr, incl.markers=TRUE,
col, xlim, ylim, lwd=2, gap=25, mtick=c("line", "triangle"),
show.marker.names=FALSE, alternate.chrid=FALSE, legend=TRUE, ...)
x |
An object of class |
chr |
Optional vector indicating the chromosomes to plot.
This should be a vector of character strings referring to chromosomes
by name; numeric values are converted to strings. Refer to
chromosomes with a preceding |
incl.markers |
Indicate whether to plot line segments at the marker locations. |
col |
Optional vector of colors to use for each partition. |
xlim |
Limits for x-axis (optional). |
ylim |
Limits for y-axis (optional). |
lwd |
Line width. |
gap |
Gap separating chromosomes (in cM). |
mtick |
Tick mark type for markers (line segments or upward-pointing triangels). |
show.marker.names |
If TRUE, show the marker names along the x axis. |
alternate.chrid |
If TRUE and more than one chromosome is plotted, alternate the placement of chromosome axis labels, so that they may be more easily distinguished. |
legend |
Indicates whether to include a legend in the plot. |
... |
Passed to the function |
None.
Karl W Broman, broman@wisc.edu
Broman, K. W., Kim, S., An\'e, C. and Payseur, B. A. Mapping quantitative trait loci to a phylogenetic tree. In preparation.
scanPhyloQTL
, max.scanPhyloQTL
,
summary.scanPhyloQTL
, plot.scanone
,
inferredpartitions
,
simPhyloQTL
,
par
, colors
## Not run:
# example map; drop X chromosome
data(map10)
map10 <- map10[1:19]
# simulate data
x <- simPhyloQTL(4, partition="AB|CD", crosses=c("AB", "AC", "AD"),
map=map10, n.ind=150,
model=c(1, 50, 0.5, 0))
# run calc.genoprob on each cross
x <- lapply(x, calc.genoprob, step=2)
# scan genome, at each position trying all possible partitions
out <- scanPhyloQTL(x, method="hk")
# maximum peak
max(out, format="lod")
# approximate posterior probabilities at peak
max(out, format="postprob")
# all peaks above a threshold for LOD(best) - LOD(2nd best)
summary(out, threshold=1, format="lod")
# all peaks above a threshold for LOD(best), showing approx post'r prob
summary(out, format="postprob", threshold=3)
# plot of results
plot(out)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.