当前位置:网站首页>ggdag 绘制DAG和因果图
ggdag 绘制DAG和因果图
2022-07-29 10:23:00 【Mrrunsen】
有向无环图(DAG,Direct Acyclic Graph)是一种图模型。图由节点和边组成,节点代表变量,边代表变量之间的某种联系。如果两个节点之间的边是有明确指向的,就是有向图。如果一个有向图从某个节点出发后,无法通过若干条边回到原节点,就是一个有向无环图。贝叶斯网是有向无环图的一个著名的例子。
dagitty(有个对应的R包,也叫dagitty)是一个功能强大的基于浏览器的因果模型图分析工具。ggdag对dagitty包做了一些扩展,可以创建整洁(tidy)的因果有向无环图。ggdag的图形建立在ggplot2和ggraph(见网络数据可视化(3修订版)ggraph:ggplot2的网络可视化)的基础上,可以在R环境下更轻松的绘制DAG。
ggdag可以直接将dagitty包创建的DAG转化为整洁的数据结构。
library(dagitty)
library(ggdag)
dag <- dagitty(边栏推荐
- MySQL optimization theory study guide
- 2022cuda summer training camp Day5 practice
- After the thunderstorm of two encryption companies: Celsius repayment guarantee collateral, three arrow capital closed and disappeared
- 若依集成minio实现分布式文件存储
- [QNX hypervisor 2.2 user manual]7.2.1 hypervisor tracking events
- Shell笔记(超级完整)
- [semantic segmentation] 2021-pvt iccv
- JS temporary dead zone_ Temporary
- Network picture to local picture - default value or shortcut key
- After eating Alibaba's core notes of highly concurrent programming, the backhand rose 5K
猜你喜欢

跟着武老师学高数——函数、极限和连续(持续更新)
![[jetson][转载]jetson上安装pycharm](/img/65/ba7f1e7bd1b39cd67018e3f17d465b.png)
[jetson][转载]jetson上安装pycharm

这才是开发者神器正确的打开方式

Comprehensive and detailed SQL learning guide (MySQL direction)

Follow teacher Wu to learn advanced numbers - function, limit and continuity (continuous update)

Function - (C travel notes)

Consumer electronics, frozen to death in summer

跟着田老师学实用英语语法(持续更新)

Shell notes (super complete)

若依集成minio实现分布式文件存储
随机推荐
[paper reading] i-bert: integer only Bert quantification
Network picture to local picture - default value or shortcut key
2022cuda summer training camp Day1 practice
网络图片转换本地图片 - 默认值或快捷键
Research on the realization of linear gradient circular progress bar
MySQL million level data migration practice notes
Why use markdown to write?
After the thunderstorm of two encryption companies: Celsius repayment guarantee collateral, three arrow capital closed and disappeared
2022cuda summer training camp Day6 practice
English语法_不定代词 - 常用短语
paho交叉编译
What happens when MySQL tables change from compressed tables to ordinary tables
为什么要使用markdown进行写作?
不堆概念、换个角度聊多线程并发编程
Consumer electronics, frozen to death in summer
Docker安装Redis、配置及远程连接
[FPGA tutorial case 19] factorial operation through multiplier
How big is the bandwidth of the Tiktok server for hundreds of millions of people to brush at the same time?
Is it safe to open an account online now? Do you want to know that you must go to the business hall to open an account now?
ECCV 2022 | CMU proposes to recurse on the visual transformer without adding parameters, and the amount of calculation is still small