Learn R Programming

haploReconstruct (version 0.1.2)

plot,hbr-method: Method to visualize reconstructed haplotype-blocks

Description

The method visualizes reconstructed haplotype-blocks for a chromosome.

Usage

"plot"(x, min.marker = 1, xlab = "Genomic position [Mb]", ylab = "Reconstructed haplotype-block", main = "default", col = "black", lwd = 4, hline = 10, indicate_shared = F, addPoints = F, hbr_plot = NULL, ...)

Arguments

x
object of class hbr containing the results of reconstructed haplotype blocks for visualization.
min.marker
numeric specifying the minimum number of markers a haplotype-block should contain in order to be visualized.
xlab
Label of the x-axis with the default value 'Genomic position [MB]'.
ylab
Label of the y-axis with the default value 'Reconstructe haplotype-block'.
main
Plot title (default: "Chromosome XX").
col
Color of the lines representing the haplotype-blocks (default: "black").
lwd
Line width of the lines representing the haplotype-blocks (default: 4).
hline
Distance between horizontal lines plotted for orientation (default: 10).
indicate_shared
logical value specifying if "spurious" markers that are identical between pairs of haplotype-blocks should be indicated. This function is usefull for inspecting results and deciding whether all identified blocks are all independent or maybe reconstruction parameters should be changed.
addPoints
logical value indicating if for each reconstructed block markers should additionally be indicated.
hbr_plot
boolean vector of length the number of reconstructed bocks indicating which ones should be plotted
...
arguments of the generic plot method.

Details

The method operates on hbr objects and visualizes location of reconstructed haplotype-blocks with respect to its genomic position.

See Also

hbr ex_dat summary.hbr plot_cluster_trajectories plot_marker_trajectories map rev_map markers plot_hbr_freq inspect_window inspect_window_PCA inspect_window_avLink inspect_window_dbScannumber_hbr