Learn R Programming

onemap (version 3.0.0)

plot.onemap_progeny_haplotypes: Plots progeny haplotypes

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

# S3 method for onemap_progeny_haplotypes
plot(
  x,
  col = NULL,
  position = "stack",
  show_markers = TRUE,
  main = "Genotypes",
  ncol = 4,
  ...
)

Value

a ggplot graphic

Arguments

x

object of class onemap_progeny_haplotypes

col

Color of parents' 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

Author

Getulio Caixeta Ferreira, getulio.caifer@gmail.com

Cristiane Taniguti, chtaniguti@tamu.edu

Examples

Run this code
 # \donttest{
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))
# }

Run the code above in your browser using DataLab