parental_quantities: Calculate frequency of each markertype.

Description Usage Arguments Value Examples

View source: R/exported_functions.R

Description

Plots and returns frequency information for each markertype.

Usage

1
2
parental_quantities(dosage_matrix, parent1 = "P1", parent2 = "P2",
  log = NULL, ...)

Arguments

dosage_matrix

An integer matrix with markers in rows and individuals in columns.

parent1

Character string specifying the first (usually maternal) parentname.

parent2

Character string specifying the second (usually paternal) parentname.

log

Character string specifying the log filename to which standard output should be written. If NULL log is send to stdout.

...

Arguments passed to barplot

Value

A named vector containing the frequency of each markertype in the dataset.

Examples

1
2
3
4
data("ALL_dosages")
data("screened_data")
parental_quantities(dosage_matrix=ALL_dosages)
parental_quantities(dosage_matrix=screened_data)

mdavy86/polymapR documentation built on May 25, 2019, 9:35 p.m.