summix_network | R Documentation |
Helper function to plot the network diagram of estimated substructure proportions and similarity between reference groups
summix_network(
data = data,
sum_res = sum_res,
reference = reference,
N_reference = N_reference,
reference_colors = reference_colors
)
data |
A dataframe of the observed and reference allele frequencies for N genetic variants. See data formatting document at https://github.com/hendriau/Summix for more information. |
sum_res |
The resulting data frame from the summix function |
reference |
A character vector of the column names for the reference groups. |
N_reference |
numeric vector of the sample sizes for each of the K reference groups. |
reference_colors |
A character vector of length K that specifies the color each reference group node in the network plot. If not specified, this defaults to K random colors. |
network diagram with nodes as estimated substructure proportions and edges as degree of similarity between the given node pair
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.