Network Chart

Network diagrams (also called Graphs) show interconnections between a set of entities. Each entity is represented by a Node (or vertice). Connection between nodes are represented through links (or edges). Networks is an entire field of research in itself. For example, you need to set up a layout algorythm that finds out an optimal position for each node. Several type of networks exist. They can be directed (flow) or undirected (connection). Links can be wheigthed or not.



Color Themes


{
   "colorNodeBy" : "group",
   "colorSpectrum" : ["purple","blue","cyan","green","yellow","orange","red"],
   "graphType" : "Network",
   "networkLayoutType" : "forceDirected",
   "showAnimation" : "true",
   "title" : "Les Miserable"
}
library(canvasXpress)
nodes=read.table("https://www.canvasxpress.org/data/cX-lesmiserable-nodes.txt", header=TRUE, sep="\t", quote="", fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
edges=read.table("https://www.canvasxpress.org/data/cX-lesmiserable-edges.txt", header=TRUE, sep="\t", quote="", fill=TRUE, check.names=FALSE, stringsAsFactors=FALSE)
canvasXpress(
  nodeData=nodes,
  edgeData=edges,
  colorNodeBy="group",
  colorSpectrum=list("purple", "blue", "cyan", "green", "yellow", "orange", "red"),
  graphType="Network",
  networkLayoutType="forceDirected",
  showAnimation=TRUE,
  title="Les Miserable"
)