connectivity_matrix | R Documentation |

Build connectivity matrix

```
connectivity_matrix(clusters)
```

`clusters` |
a vector of clusterings. Zero elements mean that the sample was absent during clustering |

Connectivity matrix (M) is a binary matrix N-by-N M[i,j] = 1 if sample i and j are in the same cluster ref: Monti et al. (2003) "Consensus Clustering: A Resampling-Based Method for Class Discovery and Visualization of Gene Expression Microarray Data", Machine Learning

Connectivity matrix

```
con_mat = connectivity_matrix(c(1,1,1,2,2,2))
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.