r - DiagrammeR - 如何将标签移动到节点之外
问题描述
如何使用 R 的 DiagrammeR 包将标签移出圆圈?我在说明手册中没有看到任何内容。这是我的代码。在我看来,将标签放在圆圈内并不吸引人。如果我能申请ggrepel
那DiagrammeR
将是理想的,尽管我怀疑这是可能的。
library(DiagrammeR)
grViz("
digraph neato {
graph [layout = neato]
node [shape = circle,
style = filled,
color = grey,
label = '']
node [fillcolor = red]
a [label='Amelia Arduino', fixedsize = true]
node [fillcolor = green]
b c d
node [fillcolor = orange]
l [label = 'Larry Lamp', fixedsize = true]
edge [color = grey]
a -> {b c d}
b -> {e f g h i j}
c -> {k l m n o [label = 'Ophelia Oz', fixedsize = true]
p [label = 'Peter Pete', fixedsize = true]}
d -> {q r s t u v}
}")
解决方案
推荐阅读
- java - 如何在 JEditorPane 上应用样式?
- python - 如何连接 N 个列表并对 Python 中列表列表的 N 个元素求和?
- google-chrome - 增加谷歌搜索页面
- sas - Proc SQL 将十进制转换为分钟和秒 (SAS)
- bookdown - bookdown 中的 Cookie 政策
- python - Python 库“nsetools”不能在 linux 上运行
- java - 为什么我在 TOMCAT 8.5 上的 Java JAX-RS webapp 报告一个 MultiException (JAXBContext / WADL) 并引用了 GLASSFISH 包名称?
- python - Wikipedia API for Python:如何从相应页面获取项目 ID?
- floating-point - 理解 IEEE 754:为什么 convertFromInt 和 convertToIntegerXXX 被归类为算术运算而不是转换运算?
- python - 如何在烧瓶中制作上传文件