summix_network: summix_network

View source: R/summix.R

summix_networkR Documentation

summix_network

Description

Helper function to plot the network diagram of estimated substructure proportions and similarity between reference groups

Usage

summix_network(
  data = data,
  sum_res = sum_res,
  reference = reference,
  N_reference = N_reference,
  reference_colors = reference_colors
)

Arguments

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.

Value

network diagram with nodes as estimated substructure proportions and edges as degree of similarity between the given node pair


hendriau/Summix documentation built on April 25, 2024, 2:41 p.m.