Description Usage Arguments Details Value
Creates a list of information needed to plot QTL across a genome, for all or only a subset of chromsomes.
1 | plotQTL(chr = 1:5, marker_locations, nlanes = 2, left_gap = 2, right_gap = 2)
|
chr |
a numeric vector listing which chromosomes are to be plotted. |
marker_locations |
A data.frame listing marker positions on each chromosome. Should include a column labelled 'Position' and another labelled 'Chromosome'. |
nlanes |
the number of lanes to plot for each chromosome. |
left_gap, right_gap |
Additional space on the left- and right-hand sides of each chromosome for additional labels. |
For each chromosome specified a 'track' is created, which is further divided into lanes for plotting QTL from different years or experiments. QTL positions and their confidence intervals are plotted to the centre of these lanes, and dividing lanes plotted between each lane. These lane centres and margin positions can be used to add extra information, such as lane labels above the chromosome.
The gap between chromosomes can be adjusted to include further embellishments, and the plot will rescale automatically.
A list of two tables detailing:
Chromosomes to be plotted
Number of chromosome tracks to be included
Number of lanes on each track
Lists of marker positions for each track
Lengths of each track
Gap to the left of each track
Gap to the right of each track
Table of x-axis poisitions of the centres of each lane.
Table of x-axis poisitions of the margins of each lane.
Optional list of labels for each lane.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.