DiagrammeR icon indicating copy to clipboard operation
DiagrammeR copied to clipboard

Superscripts and line breaks

Open Maschette opened this issue 3 years ago • 5 comments

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']
}

image

Maschette avatar Oct 19 '20 06:10 Maschette

+1 I'm having the same issue.

sorenoneill avatar Jun 25 '21 09:06 sorenoneill

+1 same here

23ava avatar Aug 01 '21 18:08 23ava

+1 here

Eryops1 avatar Mar 06 '22 13:03 Eryops1

+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.

Minh-AnhHuynh avatar Mar 29 '23 19:03 Minh-AnhHuynh

+1 Same issue

pedromafonso avatar Jul 21 '23 13:07 pedromafonso