Commands

K-means Clustering

  kmeans_clust <- kmeans(expression, 10)

Hierarchical Clustering

  dist_mat <- dist(expression, method = "euclidean")
  hier_clust <- hclust(dist_mat, method="ward") 
  plot(hier_clust)

Visualization

References

https://www.r-bloggers.com/k-means-clustering-in-r/

http://www.statmethods.net/advstats/cluster.html