The newline \n
'line break' doesn't seem to work with the networkD3 package. Or maybe I'm not applying \n
properly. How do I line break on line #2 shown below when using the diagonalNetwork()
function?
library(networkD3)
nd3 <- list(name = "Start\nSecond Line", # line 2
children = list(list(name = "A",
children = list(list(name = "*1"),
list(name = "2"),
list(name = "3"))),
list(name = "B")))
diagonalNetwork(List = nd3, fontSize = 18, opacity = 0.9)