DiagrammeR
DiagrammeR copied to clipboard
Superscripts and line breaks
Hi Rich I am hoping this is not another silly issue like my last!
I read #71 and it showed me how to do superscripts but then I was trying to add a line break and I can seem to either have the superscript or the line break but not both? I tried using both \n and \n with differing results I searched the package website and couldn't find any info on superscript. I also tried it using paste0() like the examples with the rstudio API but kept getting a syntax error (which I also got trying to run that example)
grViz("
digraph boxes_and_circles {
node [shape = box,
fontname = helvitica,
color = '#FF0000',
style = 'filled'
]
Growth [label = 'Growth \n (t@^{0}, K, Linf)' , color= '#a91ddb']
Growth2 [label = 'Growth \\n (t@^{0}, K, Linf)' , color= '#a91ddb']
}
+1 I'm having the same issue.
+1 same here
+1 here
+1 Same issue as well. And for some reason I don't even get the Graph 1. It's always written '\n'.
Edit : The shortcut @^{superscript}
for superscript or the equivalent for subscript will never work when using double quotes "
. I think it is a slight issue as well.
+1 Same issue