r2expr: Convert r^2 measure into a printable expression

Description Usage Arguments Value Examples

Description

This function is used internally by package HaplotypeMiner to generate pretty labels for graphs.

Usage

1
r2expr(r2_measure)

Arguments

r2_measure

A character of length one. The R-squared measure used to represent linkage disequilibrium. Must be either "r2", "r2v", "r2s" or "r2vs", otherwise an error will be thrown.

Value

An object of class expression which can be used to generate pretty labels for graphs.

Examples

1

malemay/HaplotypeMiner documentation built on May 28, 2019, 2:48 p.m.