library(knitr) knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(PopGenAnalysis)
PopGenAnalysis
is an R package to view various different plots for different types of population genomic data such as PCA plots for data sets of populations with different numerical attributes, HWE plots, etc.
see help(package = "PopGenAnalysis")
for more information and references provided by citation("PopGenAnalysis")
To download PopGenAnalysis , use the following commands:
require("devtools") devtools::install_github("Heffley/PopGenAnalysis",build_vignettes = TRUE) library(PopGenAnalysis)
To list all functions available in this package:
ls("package:PopGenAnalysis")
There are 3 functions in the package:
The pcaPopulationPlot allows users to input the chromosome name and gene range as arguments, then returns the summary for all transcripts within the input range, with information of gene name, transcript
The hwHeatPlot function generates the plot heatmap showing significant departures from HWE where the pink values are where p are less than or equal to alpha.
The provestiDistDendo will display a dendogram of random n individuals/populations to visualize a genetic distance with a given data set.
All the functions should be straightforward to use, as long as the valid data sets are used.
The following example illustrate how to use pcaPopulationPlot function:
pcaPopulationPlot(mtcars)
The following PCA plot should appear.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.