当前位置:网站首页>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(边栏推荐
- This developer, who has been on the list for four consecutive weeks, has lived like a contemporary college student
- The server
- 12代酷睿处理器+2.8K OLED华硕好屏,灵耀14 2022影青釉商务轻薄本
- Selenium series 5-xpath path expression
- "Focus on machines": Zhu Songchun's team built a two-way value alignment system between people and robots to solve major challenges in the field of human-computer cooperation
- ECCV 2022 | CMU proposes to recurse on the visual transformer without adding parameters, and the amount of calculation is still small
- How big is the bandwidth of the Tiktok server for hundreds of millions of people to brush at the same time?
- Research on the realization of linear gradient circular progress bar
- 架构实战营模块八作业
- Explore SQL Server metadata (I)
猜你喜欢

Does neural network sound tall? Take you to train a network from scratch (based on MNIST)

Knowledge points of common interview questions: distributed lock

电竞入亚后,腾讯要做下一个“NBA赛事捕手”?

二次握手??三次挥手??

Shell笔记(超级完整)

可线性渐变的环形进度条的实现探究
![[Yugong series] go teaching course 010 in July 2022 - Boolean and character types of data types](/img/3c/eaadcc105377f012db5ee8852b5e28.png)
[Yugong series] go teaching course 010 in July 2022 - Boolean and character types of data types

Understanding of Arduino circuit

云服务大厂高管大变阵:技术派让位销售派

HTB-AdmirerToo
随机推荐
10 suggestions for 10x improvement of application performance
Introduction to distributed scheduling xxl-job features
跟着李老师学线代——矩阵(持续更新)
NUMA architecture CPU API change summary
Leetcode question brushing - sorting
Are you familiar with the redis cluster principle of high paid programmers & interview questions series 122? How to ensure the high availability of redis (Part 2): cluster mechanism and principle, clu
[HFCTF 2021 Final]easyflask
MySQL优化理论学习指南
Reasons for the rise of DDD and its relationship with microservices
Uniswap entered the NFT trading market and opensea took the lead
Some suggestions for programmers to leave single
What are the compensation standards for hospital misdiagnosis? How much can the hospital pay?
MySQL 8 of relational database -- deepening and comprehensive learning from the inside out
What happens when MySQL tables change from compressed tables to ordinary tables
98. (cesium chapter) cesium point heat
Object storage
[jetson][转载]jetson上安装pycharm
[Yugong series] go teaching course 010 in July 2022 - Boolean and character types of data types
Science fiction style, standard 6 airbags, popular · yachts from 119900
Oncopy and onpaste