Generate an interactive network map of the summary statistics data.
Summary statistics data.
Numeric columns to plot in the heatmap.
Columns within dat
to set as nodes.
Each node variable will link to the next node in the character vector.
You can repeat column names to create more connections between nodes.
Indices of rows to include. Set to NULL
to include all rows,
but be warned that this can become very computationally expensive.
A character vector of SNP RSIDs to subset dat
by.
Variable to aggregate data by.
Set to NULL
to skip this step.
Function to aggregate cols
with.
Show the heatmap as a correlation matrix instead of a feature x sample matrix.
an integer scalar with the desired number of groups by which to color the dendrogram's branches in the rows (uses color_branches) If NA then find_k is used to deduce the optimal number of clusters.
Variables in dat
to include as row-wise annotations.
Print the plot.
The type of layout to create. Either a valid string, a function, a matrix, or a data.frame (see Details)
The minimum / maximum size of each node.
A named list containing a network plot and the data used to create it.
dat <- ThreeWayTest::data_matrix_final
nm <- networkmap(dat = dat)
#> Loading required namespace: tidygraph
#> Loading required namespace: ggnetwork
#> Loading required namespace: pals
#> Warning: The following aesthetics were dropped during statistical transformation: xend,
#> yend, label
#> ℹ This can happen when ggplot fails to infer the correct grouping structure in
#> the data.
#> ℹ Did you forget to specify a `group` aesthetic or to convert a numerical
#> variable into a factor?