Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Superscripts and line breaks #416

Open
Maschette opened this issue Oct 19, 2020 · 5 comments
Open

Superscripts and line breaks #416

Maschette opened this issue Oct 19, 2020 · 5 comments

Comments

@Maschette
Copy link

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

@sorenoneill
Copy link

+1 I'm having the same issue.

@23ava
Copy link

23ava commented Aug 1, 2021

+1 same here

@Eryops1
Copy link

Eryops1 commented Mar 6, 2022

+1 here

@Minh-AnhHuynh
Copy link

Minh-AnhHuynh commented Mar 29, 2023

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

@pedromafonso
Copy link

+1 Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants