network_rescale | R Documentation |
This function rescales to a 0 to 100 scale using the values present in the matrix. It is based on the rescale function of the scales package. It will make the matrix symmetric by mirroring the upper half if it isn't. If negative values present, their absolute value will be taken.
network_rescale(adj_mat, to = c(0, 100), print_message = TRUE)
adj_mat |
an adjacency matrix to normalize. |
to |
interval in which transformation should be done.
Default is |
print_message |
a logical value indicating whether or not a re-scaling message shall be printed. |
Sergio Vasquez and Hajk-Georg Drost
# path to ppcor output file
ppcor_output <- system.file('beeline_examples/PPCOR/outFile.txt', package = 'edgynode')
# parsing the output to an adjacency matrix
ppcor_parsed <- ppcor(ppcor_output)
# rescaling the matrix
rescaled <- network_rescale(ppcor_parsed)
# Visualize result
head(rescaled)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.