简体   繁体   English

哪些 R 包适合绘制随时间推移的疾病传播?

[英]Which R packages are suitable for plotting disease transmission over time?

I am trying to find a way to plot a disease transmission tree that allows me to:我正在尝试找到一种方法来 plot 一种疾病传播树,它允许我:

  • plot the tree over a timeline (a timeline spanning 2 months) plot 时间轴上的树(时间轴跨越 2 个月)
  • specify the shape and colour of the nodes in the tree (so that you can easily identify which nodes belong to the same household for example)指定树中节点的形状和颜色(例如,以便您可以轻松识别哪些节点属于同一家庭)
  • format the link between the nodes (dashed lines, two way arrows, solid lines...etc.)格式化节点之间的链接(虚线、双向箭头、实线...等)
  • plot "stray branches" that aren't linked to the root/parent node. plot 未链接到根/父节点的“杂散分支”。

The dataset I am working with is relatively small (22 nodes) so I don't mind working with a package that is a bit fiddly!我正在使用的数据集相对较小(22 个节点),所以我不介意使用有点繁琐的 package!

I have thought about using phylogeny trees, but I'm uncertain whether they will allow me to plot stray nodes.我曾考虑过使用系统发育树,但我不确定它们是否允许我使用 plot 杂散节点。 Which package would be most suitable for this task?哪个 package 最适合这项任务?

Thanks!谢谢!

Try DiagrammeR .试试DiagrammeR I don't have much experience, but it did what I needed to do and I know I barely scratched the surface of what it can do.我没有太多经验,但它完成了我需要做的事情,而且我知道我几乎没有触及到它可以做的事情的表面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM