rich-iannone / DiagrammeR

Graph and network visualization using tabular data in R
https://rich-iannone.github.io/DiagrammeR/
Other
1.7k stars 249 forks source link

Font size in subscript #194

Open bguiastr opened 8 years ago

bguiastr commented 8 years ago

Would it be possible to scale sub/superscripts proportionally to the fontsize?

library(DiagrammeR)

grViz("
      digraph subscript {

      # Graph statements
      graph [layout = circo, overlap = false]

      # Node statements
      node [fontname = Helvetica]
      a [label = 'Two@_{2}', fontsize = 5]
      b [label = 'Two@_{2}', fontsize = 20]

      # Edge statements
      a -> b
      }
      ")

big_subscript

rich-iannone commented 7 years ago

@guiastrennec I will work on this soon. Thanks again.