make_binary | R Documentation |
make_adjacency
into a binary matrixThis function takes an adjacency matrix generated with make_adjacency
as input and
converts it to a binary matrix using a binarization threshold.
make_binary(adj, threshold, output_plot = FALSE)
adj |
an adjacency matrix converted from a raw input matrix via |
threshold |
a numeric value that is within the range
|
Ilias Moutsopoulos and Hajk-Georg Drost
# look at raw matrix
edgynode::adjacency_matrix_test_3
# convert raw matrix into a edgynode adjacency matrix
edgynode_matrix <- edgynode::make_adjacency(edgynode::adjacency_matrix_test_3)
# convert into a binary matrix
edgynode_matrix_binary <- edgynode::make_binary(edgynode_matrix, threshold = 1)
# look at result
edgynode_matrix_binary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.