Description Usage Arguments Value
Takes an input matrix with regions in rows and units in columns, where elements are a binary incidence (fx RCA). Calculates the one of three possible similarity-metrics: proximity, Association Strength, or Jaccard coefficient. Returns a unit x unit matrix with pairwise similarity values as elements.
1 | get_similarity(mat, method, diag0 = TRUE)
|
mat |
Binary matrix that contains regions in rows, units in columns and presence/incidence in elements. |
method |
String that lists the method to calculate similarity. Options are: "proximty", "association", or jaccard". Only takes one argument. For more similarity-values, run function again. |
diag0 |
Logical. Decides whether diagonal in rel_mat should be set to 0. |
rel_mat Unit x unit matrix that contains pair-wise similarity value is elements. The diagonal is set to 0.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.