Learn R Programming

Hapi (version 0.0.3)

hapiGameteView: Visualization of haplotypes in a single gamete cell

Description

Visualization of haplotypes in a single gamete cell

Usage

hapiGameteView(hap, chr = hg19, hap.color = c("deepskyblue2",
  "darkorange2"), centromere.fill = "black", x.breaks = NULL,
  x.labels = NULL, y.breaks = NULL, y.labels = NULL)

Arguments

hap

a dataframe of all the phased hetSNPs in all chromosomes

chr

a dataframe of chromosome information, including length, and centrometric regions

hap.color

a vector of colors for the two haplotypes. Default is c('deepskyblue2','darkorange2')

centromere.fill

a character of the color for the centromeres. Default is 'black'

x.breaks

a vector of positions to show labels on x axis. Default is NULL

x.labels

a vector of labels on the x axis. Default is NULL

y.breaks

a vector of positions to show labels on y axis. Default is NULL

y.labels

a vector of labels on the y axis. Default is NULL

Value

a plot of haplotypes in a single gamete cell

Examples

Run this code
# NOT RUN {
data(gamete11)
# }
# NOT RUN {
hapiGameteView(hap=gamete11)
# }

Run the code above in your browser using DataLab