plotSites
¶
Plot a sites file
Description¶
Plot a sites file
Usage¶
plotSites(x = NULL, file = NULL, start = NULL, end = NULL,
anc = NULL, singletons = FALSE, allele1Color = "black",
allele2Color = c("red", "orange", "yellow", "green", "turquoise",
"purple"), missingColor = rgb(0, 0, 0, 0.1), stretch = 1,
indOrder = NULL, textColor = NULL, useCoords = TRUE, xlab = NULL,
textSize = 1, ...)
Arguments¶
Argument |
Description |
---|---|
|
A sites file object as read by readSites(). |
|
(Alternative to x) Sites file (may be gzipped. may NOT be streamed) |
|
The start coordinate of the plot. NULL implies start from beginning of region |
|
The end coordinate of the plot. NULL implies go to end of region. |
|
Ancestral sample name. If NULL, allele1 is major allele and allele2 is minor allele |
|
If TRUE, include singletons in plot |
|
The color(s) for allele1 (will be recycled across sites) |
|
The color(s) for allele2 (will be recycled across sites) |
|
The color for N allleles |
|
A horizontal expansion factor for sites (so that sparse sites are visible in a large region) |
|
A character vector giving order to list haplotypes (if NULL use order used in sites object) |
|
a list saying which color to use for which haplotype label |
|
if FALSE, just plot all variant sites with equal spacing |
|
label for x-axis. Default is “Coordinate” if useCoords=TRUE or “Sites index” if useCoords=FALSE |
|
the magnification size of haplotype labelscat |
|
Other arguments passed to plot function |