amm2tibble: convert an ancestry-matching matrix to a ggplot-able tibble

View source: R/amm2tibble.R

amm2tibbleR Documentation

convert an ancestry-matching matrix to a ggplot-able tibble

Description

This merely converts a matrix to a tibble that can be plotted easily using ggplot.

Usage

amm2tibble(M)

Arguments

M

an ancestry-match matrix

Value

amm2tibble() returns a tibble with three columns:

  • x: the 1-based index of the row of input matrix,

  • y: the 1-based index of the column of the input matrix,

  • amm: the logical value (TRUE/FALSE) of the (x,y)-th cell of the input matrix.

Examples

# convert one of the simple example AMMs to a tibble
amm2tibble(example_amms$Father_Offspring_2gen)

eriqande/CKMRpop documentation built on Jan. 25, 2024, 2:10 p.m.