plotGenos {ABHgenotypeR} | R Documentation |
Plot graphical genotypes.
Description
Plot graphical genotypes.
Usage
plotGenos(genos = "genotypes", markerToPlot = "all",
individualsToPlot = "all", chromToPlot = "all",
alleleColors = c("#56B4E9", "#E69F00", "#009E73", "#000000"),
textSize = 12, showMarkerNames = FALSE, showIndividualNames = FALSE)
Arguments
genos |
The output of readABHgenotypes |
markerToPlot |
A character vector of marker names which appear in the plot. Defaults to all. |
individualsToPlot |
A character vector of individual names which appear in the plot. Defaults to all. |
chromToPlot |
A character vector of chromosome names which appear in the plot. Defaults to all. |
alleleColors |
A character vector of length 4 giving the color names or values to use for the A,B,H and n.d genotypes. Defaults to orange, blue, green and black. |
textSize |
The size of all text elements in the plot. Useful for making a nice plot. Defaults to 12. |
showMarkerNames |
Show the marker names along the x axis. This and showIndividualNames are useful when you display only a few markers and want them labeled. Defaults to FALSE. |
showIndividualNames |
Show individual names along the y axis. |
Value
Graphical genotypes.
Examples
## Not run: plotGenos(genotypes)
markerNames <- c("marker1", "marker2", "marker3")
individualNames <- c("F2_100", "F2_101", "F2_102", "F2_103")
someColors <- c("black", "red", "gold", "white")
## Not run: plotgenos(genotypes, markerNames, individualNames, 1:3, someColors)
## Not run: p <- plotGenos(genotypes)
[Package ABHgenotypeR version 1.0.1 Index]