使用R创建树形图以显示案件数 [英] creating tree diagram for showing case count using R

查看:99
本文介绍了使用R创建树形图以显示案件数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个类似于树形图的图形来表示不同情况下的案例数,如下所示:

I need to create a "tree diagram"-like graph to present the number of cases for different scenarios, like the one shown below:

图片引自:

Pediatrics. 2005 Dec;116(6):1317-22.
Electronic surveillance system for monitoring surgical antimicrobial prophylaxis.
Voit SB, Todd JK, Nelson B, Nyquist AC.

我可以使用命令,但这不是呈现它的一种很好的方法。

I can get the numbers easily from R using the table command, but it is not a very good way to present it.

可以制作图表而没有任何奇特的颜色或东西,我只想使用格式以显示数字。有建议吗?

The chart can be made without any fancy colors or stuff, I just want to use the format to present the numbers. Any suggestions?

推荐答案

可以使用关系图包来绘制树形图。它是用于绘制流程图等的通用软件包。请参见

The tree diagram could be drawn using the "diagram" package. It is a generic package for drawing flow diagrams etc. See


library(diagram)
demo("flowchart")

这篇关于使用R创建树形图以显示案件数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆