☰
Igraph绘图参数
2026/9/28 19:32:28 网站建设 项目流程

NODES

  • vertex.colorNode color
  • vertex.frame.colorNode border color
  • vertex.shapeOne of “none”, “circle”, “square”, “csquare”, “rectangle” “crectangle”, “vrectangle”, “pie”, “raster”, or “sphere”
  • vertex.sizeSize of the node (default is 15)
  • vertex.size2The second size of the node (e.g. for a rectangle)
  • vertex.labelCharacter vector used to label the nodes
  • vertex.label.familyFont family of the label (e.g.“Times”, “Helvetica”)
  • vertex.label.fontFont: 1 plain, 2 bold, 3, italic, 4 bold italic, 5 symbol
  • vertex.label.cexFont size (multiplication factor, device-dependent)
  • vertex.label.distDistance between the label and the vertex
  • vertex.label.degreeThe position of the label in relation to the vertex, where 0 right, “pi” is left, “pi/2” is below, and “-pi/2” is above

EDGES

  • edge.colorEdge color
  • edge.widthEdge width, defaults to 1
  • edge.arrow.sizeArrow size, defaults to 1
  • edge.arrow.widthArrow width, defaults to 1
  • edge.ltyLine type, could be 0 or “blank”, 1 or “solid”, 2 or “dashed”, 3 or “dotted”, 4 or “dotdash”, 5 or “longdash”, 6 or “twodash”
  • edge.labelCharacter vector used to label edges
  • edge.label.familyFont family of the label (e.g.“Times”, “Helvetica”)
  • edge.label.fontFont: 1 plain, 2 bold, 3, italic, 4 bold italic, 5 symbol
  • edge.label.cexFont size for edge labels edge.curved Edge curvature, range 0-1 (FALSE sets it to 0, TRUE to 0.5)
  • arrow.modeVector specifying whether edges should have arrows, possible values: 0 no arrow, 1 back, 2 forward, 3 both

OTHER

  • marginEmpty space margins around the plot, vector with length 4
  • frameif TRUE, the plot will be framed
  • mainIf set, adds a title to the plot
  • subIf set, adds a subtitle to the plot

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询