Learn R Programming

SNPassoc (version 1.4-9)

plotMissing: Plot of missing genotypes

Description

Plot a grid showing which genotypes are missing

Usage

plotMissing(x, print.labels.SNPs = TRUE, 
        main = "Genotype missing data", ...)

Arguments

x
an object of class 'setupSNP'
print.labels.SNPs
should labels of SNPs be printed?
main
title to place on plot
...
extra arguments of 'image' function

Value

  • None

Details

This function uses 'image' function to plot a grid with black pixels where the genotypes are missing.

See Also

setupSNP

Examples

Run this code
data(SNPs)
 data(SNPs.info.pos) 
 ans<-setupSNP(SNPs,colSNPs=6:40,sep="")
 plotMissing(ans)
 
 # The same plot with the SNPs sorted by genomic position and 
 # showing the information about chromosomes

 ans<-setupSNP(SNPs,colSNPs=6:40,sort=TRUE,SNPs.info.pos,sep="") 
 plotMissing(ans)

Run the code above in your browser using DataLab