簡體   English   中英

R Diagrammer 包無法識別第十個腳注

[英]R diagrammer package not recognizing tenth footnote

我注意到在過去一周左右的時間里,我的腳注解釋出現了錯誤。 我嘗試更新到最新版本以及最新的 github 下載。 我還將 R 和 R studio 更新到最新版本。

從腳注 10 開始,對先前概述的標簽存在誤解:

grViz("
digraph {
graph [layout = dot]
node [shape = box, fontname = Helvetica]
a [label = '@@1']
b [label = '@@2']
c [label = '@@3']
d [label = '@@4']
e [label = '@@5']
f [label = '@@6']
g [label = '@@7']
h [label = '@@8']
i [label = '@@9']
j [label = '@@10']
k [label = '@@11']
l [label = '@@12']
m [label = '@@13']
n [label = '@@14']
o [label = '@@15']
p [label = '@@16']

a -> {b c d}
b -> {e f}
c -> {g h}
d -> {i j}
e -> {k}
f -> {l}
g -> {m}
h -> {n}
i -> {o}
j -> {p}

}

[1]: 'hello'
[2]: 'there'
[3]: 'how'
[4]: 'are'
[5]: 'you'
[6]: 'today'
[7]: 7
[8]: 8
[9]: 9
[10]: 'this one is interpreted as @@1 + 0 rather than @@10'
[11]: 'this one is interpreted as @@1 + 1 rather than @@11'
[12]: 'etc'
[13]: 'etc'
[14]: 'etc'
[15]: 'etc'
[16]: 'etc'
")

繪圖員圖

這種編寫替換的方式有效。 圖中的每個級別都有自己的帶連字符的系列。

grViz("
digraph boxes_and_circles {

# several 'node' statements
  node [shape = box, color = tomato,
        fontname = Helvetica]
  a ; b ; c1 ; c2 ; d1 ; d2 ; d3 ; d4 ; e1 ; e2 ; e3 ; e4 ; e5 ; e6 ; e7 ; e8

# 'edge' statements
  a->b->{c1,c2} c1->{d1,d2} c2->{d3,d4} d1->{e1,e2} d2->{e3,e4} d3->{e5,e6} d4->{e7,e8}


# a 'graph' statement
  graph [overlap = true, fontsize = 10]
a [label = 'Enrolled\nN=@@1']
b [label = 'Randomized\nN=@@2']
c1 [label = '15-Day\nN=@@3-1']
c2 [label = '60-Day\nN=@@3-2']
d1 [label = 'WGS\nPositive\nN=@@4-1']
d2 [label = 'WGS\nNegative\nN=@@4-2']
d3 [label = 'WGS\nPositive\nN=@@4-3']
d4 [label = 'WGS\nNegative\nN=@@4-4']
e1 [label = 'Visit3 COM\nTRUE\nN=@@5-1']
e2 [label = 'Visit3 COM\nFALSE\nN=@@5-2']
e3 [label = 'Visit3 COM\nTRUE\nN=@@5-3']
e4 [label = 'Visit3 COM\nFALSE\nN=@@5-4']
e5 [label = 'Visit3 COM\nTRUE\nN=@@5-5']
e6 [label = 'Visit3 COM\nFALSE\nN=@@5-6']
e7 [label = 'Visit3 COM\nTRUE\nN=@@5-7']
e8 [label = 'Visit3 COM\nFALSE\nN=@@5-8']

}

[1]: A
[2]: B
[3]: c(C1,C2)
[4]: c(D1,D2,D3,D4)
[5]: c(E1,E2,E3,E4,E5,E6,E7,E8)


")

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM