Learn R Programming

pcrsim (version 0.1.1)

generateEPG: Generate EPG

Description

generateEPG visualises an EPG from DNA profiling data.

Usage

generateEPG(data, kit, plotTitle = NULL, peaks = TRUE,
    debugInfo = FALSE)

Arguments

data
data frame containing columns 'Allele', 'Marker' and 'Height'.
kit
string or integer representing the STR typing kit.
plotTitle
string providing the title for the EPG.
peaks
logical, TRUE plot peaks using mean peak height for distributions.
debugInfo
logical for printing debug information to the console.

Value

  • NULL.

Details

Generates a electropherogram like plot from 'data' and 'kit'. Homozygotes should be entered as a single entry.

Examples

Run this code
# Load genotyping data.
data("set1")
# Extract a sample.
mySample <- set1[set1$Sample.Name=="PC1",]
# Generate an electropherogram like plot.
generateEPG(data=mySample, kit="ESX17")

Run the code above in your browser using DataLab