Description Usage Arguments Value Examples
This merely converts a matrix to a tibble that can be plotted easily using ggplot.
1 | amm2tibble(M)
|
M |
an ancestry-match matrix |
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.
1 2 | # convert one of the simple example AMMs to a tibble
amm2tibble(example_amms$Father_Offspring_2gen)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.