This function generates a genetic linkage map visualization using ggplot2. It plots chromosomes as vertical or horizontal lines and displays markers as colored segments along each chromosome using the data structure built in R/qtl. Replaces plotMap which uses base R.
Arguments
- map
crossobject representing a genetic map. The output of R/qtl'sread.cross(),jittermap()orcalc.genoprob()If a
crossobject, the function extracts the map usingpull.map().
- horizontal
Logical. If
TRUE, the map is plotted with chromosomes arranged horizontally. Default isFALSE(vertical layout).- color
Character. The color for the marker segments. Default is
"red"ifNULL.
