Graphviz
Graphviz 是一個命令列軟體,可以讀取具有 dot 語法的文檔,生成流程圖之類的圖檔,並在各種常見的科學報告文檔格式(如 LaTeX、Rmarkdown、Jupyter notebook)內都有相關外掛或內建功能可以整合使用。
Install & Documentation
中文教學
Basic Grammar
Command
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
<cmd> |
用於 |
例子 |
dot |
有向圖(分層地畫) |
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
|
neato |
無向圖(基於彈簧模型) |
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
|
twopi |
星形圖(結點中心放到同心的一系列圓上,包括圓心) |
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
|
circo |
環狀的圖 |
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
|
fdp |
無向圖(基於力) |
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
|
patchwork |
方形樹 |
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
|
Gallery
Using Graphviz
LaTeX
Need compiled with the additional option --shell-escape
.
R/Rmarkdown
Use DiagrammeR::grViz
function in DiagrammeR
package:
Also this function can read graphviz file from file path:
In Rmarkdown:
Python/Jupyter notebook
Use graphviz
package
VSCode