plot.onemap_progeny_haplotypes: Plots progeny haplotypes

Description Usage Arguments Value Author(s) Examples

View source: R/write_haplotypes.R

Description

Figure is generated with the haplotypes for each selected individual. As a representation, the recombination breakpoints are here considered to be in the mean point of the distance between two markers. It is important to highlight that it did not reflects the exact breakpoint position, specially if the genetic map have low resolution.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'onemap_progeny_haplotypes'
plot(
  x,
  col = NULL,
  position = "stack",
  show_markers = TRUE,
  main = "Genotypes",
  ncol = 4,
  ...
)

Arguments

x

object of class onemap_progeny_haplotypes

col

Color of parentes' homologous.

position

"split" or "stack"; if "split" (default) the alleles' are plotted separately. if "stack" the parents' alleles are plotted together.

show_markers

logical; if TRUE, the markers (default) are plotted.

main

An overall title for the plot; default is NULL.

ncol

number of columns of the facet_wrap

...

currently ignored

Value

a ggplot graphic

Author(s)

Getulio Caixeta Ferreira, getulio.caifer@gmail.com

Cristiane Taniguti, chtaniguti@tamu.edu

Examples

1
2
3
4
5
6
 
data("onemap_example_out")
twopts <- rf_2pts(onemap_example_out)
lg1 <- make_seq(twopts, 1:5)
lg1.map <- map(lg1)
plot(progeny_haplotypes(lg1.map))

onemap documentation built on Feb. 11, 2022, 5:06 p.m.