plotGTFreq: plotGTFreq

View source: R/plot-gt-freq.R

plotGTFreqR Documentation

plotGTFreq

Description

Function to plot the genotypes for all samples faceted by genotype

Usage

plotGTFreq(geno)

Arguments

geno

the genotype data.frame of markers by samples from output of function correctGT

Value

A ggplot object

Author(s)

Ruqian Lyu

Examples


data(snp_geno)
or_geno <- snp_geno[,grep("X",colnames(snp_geno))]
rownames(or_geno) <- paste0(snp_geno$CHR,"_",snp_geno$POS)
or_geno[1,] <- rep("Fail",dim(or_geno)[2])
cr_geno <- correctGT(or_geno,ref = snp_geno$C57BL.6J,
                    alt = snp_geno$FVB.NJ..i.)
ft_gt <- filterGT(cr_geno)
plotGTFreq(ft_gt)

ruqianl/comapr documentation built on Oct. 27, 2023, 5:12 a.m.