Monday, November 21, 2016

Cord Diagrams in R

image

A nice Cord Diagram produced with just two statements in R (see (1)):

par(mar = c(1, 1, 1, 1), bg="violetred4")
circlize::chordDiagram(matrix(1, 20, 20),
                       col="white",
                       symmetric = TRUE,
                       transparency = 0.85,
                       annotationTrack = NULL)

A collection of more meaningful graphs is in (2). Particularly impressive is:

 

References
  1. https://fronkonstin.com/2016/08/22/the-breathtaking-1-matrix/
  2. http://zuguang.de/circlize/