换行符\n
'换行符'似乎不适用于networkD3软件包。也许我没有正确应用\n
。使用diagonalNetwork()
函数时,如何在下面显示的#2行上换行?
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)