plot.onemap_progeny_haplotypes {onemap} | R Documentation |
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 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 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 |
main |
An overall title for the plot; default is |
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
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))