plotGenos: Plot graphical genotypes.

Description Usage Arguments Value Examples

View source: R/plotGenos.R

Description

Plot graphical genotypes.

Usage

1
2
3
4
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

1
2
3
4
5
6
7
## 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)

Example output



ABHgenotypeR documentation built on May 2, 2019, 6:33 a.m.