plotCompareGenos: Compare to genotype matrices

Description Usage Arguments Value Examples

View source: R/plotCompareGenos.R

Description

Compare to genotype matrices

Usage

1
2
3
4
plotCompareGenos(genos_1 = "genotypes_1", genos_2 = "genotypes_2",
  markerToPlot = "all", individualsToPlot = "all", chromToPlot = "all",
  CompColors = c("#000000", "#E69F00"), textSize = 12,
  showMarkerNames = FALSE, showIndividualNames = FALSE)

Arguments

genos_1

Output of readABHgenotypes

genos_2

Output of readABHgenotypes. Note that both genos object need to have identical numbers of marker x individuals.

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.

CompColors

A character vector of length 2 giving the color names or values to use for differnt and identical markers. Defaults to black and orange.

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

A graphical comparison of genotypes.

Examples

1
2
## Not run: plotCompareGenos(preImpGenotypes,postImpGenotypes)
## Not run: #for more examples see plotGenos()

Example output



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