r2expr: Convert r^2 measure into a printable expression

View source: R/r2expr.R

r2exprR Documentation

Convert r^2 measure into a printable expression

Description

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

Usage

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

NULL


malemay/HaplotypeMiner documentation built on Feb. 6, 2024, 3:29 a.m.