Description Usage Arguments Examples
Plot IBD segments for pairs across the genome. Annotation genes can be added to the plot and specific genes on interest can be highlighted.
| 1 2 3 4 | 
| ibd.segments | a named list containing the  | 
| ped.genotypes | a named list containing  | 
| interval | a vector of length 3 containing a chromosome, a start position (bp) and an end position (bp)
of an interval to plot. The default is  | 
| annotation.genes | a data frame with at least 5 columns of information: 
 
 | 
| highlight.genes | a data frame with at least 4 columns of information: 
 
 | 
| segment.height | the height of IBD segment blocks, such that 0 <  | 
| number.per.page | the maximum number of IBD pairs to plot in a single praphics window. The default is
 | 
| add.fid.name | a logical value indicating if family IDs should be included in the y-axis labels.
The default is  | 
| add.iid.name | a logical value indicating if individual IDs should be included in the y-axis labels.
The default is  | 
| add.rug | a logical value indicating whether SNP positions should be added to the plot. The default is  | 
| plot.title | a character string of a title to be added to the plot. The default is  | 
| add.legend | a logical value indicating whether the IBD status legend should be plotted. The default is  | 
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | # plot IBD segments
plotIBDsegments(ibd.segments = example_ibd,
                ped.genotypes = example_genotypes,
                interval = NULL,
                annotation.genes = NULL,
                highlight.genes = NULL,
                segment.height = 0.5,
                number.per.page = NULL,
                add.fid.name = FALSE,
                add.iid.name = TRUE,
                add.rug = TRUE,
                plot.title = "Inferred IBD Segments",
                add.legend = TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.