Description Usage Arguments See Also Examples
plotIBDiR()
plots the -log10 (p-values) used to assess the significance of excess IBD sharing.
1 2 3 4 5 6 | plotIBDiR(ibd.iR, interval = NULL, annotation.genes = NULL,
annotation.genes.color = NULL, highlight.genes = NULL,
highlight.genes.labels = TRUE, highlight.genes.color = NULL,
highlight.genes.alpha = 0.1, point.size = 1, point.color = NULL,
add.rug = FALSE, plot.title = NULL, add.legend = FALSE,
facet.label = TRUE, facet.scales = "fixed")
|
ibd.iR |
A data frame containing the iR summary statistics for each SNP.
See the returned |
interval |
A vector of length 3 containing the genomic locations of a specific region to plot. This vector should contain the
chromosome ID, the start of the interval in base-pairs and the end of the interval in base-pairs; in this order respectively.
The default is |
annotation.genes |
A data frame containing information on annotation genes to be included in the figure. This data frame must have at least 5 columns of information:
|
annotation.genes.color |
A vector of characters or numeric values containing the two colors according to gene stand (positive (+) or negative (-)) |
highlight.genes |
A data frame containing information of genes or regions to highlight. The data frame must have at least 4 columns of information:
|
highlight.genes.labels |
Logical. Whether to include gene names as labels in the figure. The default is |
highlight.genes.color |
Character string or numeric value. A single color that will be used to highlight a region/gene. The default is |
highlight.genes.alpha |
Numeric. A single value between 0 and 1 indicating the gene color transparency. The default is |
point.size |
Numeric. The size of the points in the figures. The default is |
point.color |
A vector of characters or numeric values denoting the color of points to be plotted.
If there are multiple subpopulations then the number of colors specified should equal the number of subpopulations.
The default is |
add.rug |
Logical. Whether to include SNP positions as a rug in the figure. The default is |
plot.title |
A character string of a title to be added to the figure The default is |
add.legend |
Logical. Whether a legend containing subpopulation information should be plotted. The default is |
facet.label |
Logical. Whether to include facet labels if multiple subpopulations (column name "subpop") are specified. |
facet.scales |
A character string of either |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # generate a binary IBD matrix
my_matrix <- getIBDmatrix(ped.genotypes = png_genotypes,
ibd.segments = png_ibd)
# calculate the significance of IBD sharing
my_iR <- getIBDiR(ped.genotypes = png_genotypes,
ibd.matrix = my_matrix,
groups = NULL)
# plot the iR statistics
plotIBDiR(ibd.iR = my_iR,
interval = NULL,
annotation.genes = NULL,
annotation.genes.color = NULL,
highlight.genes = NULL,
highlight.genes.labels = FALSE,
highlight.genes.color = NULL,
highlight.genes.alpha = 0.1,
point.size = 1,
point.color = NULL,
add.rug = FALSE,
plot.title = "Significance of IBD sharing",
add.legend = FALSE,
facet.label = TRUE,
facet.scales = "fixed")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.