amm2tibble {CKMRpop} | R 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)
[Package CKMRpop version 0.1.3 Index]