Hello,
I am developing a shiny app and am using circlepackeR for a visualization. I have multiple levels and everything is working fine but it does not appear that circlepackeR supports line breaks within a circle using "/n". I am trying to input two lines of text within a single circle using the following code:
data_nested$pathString <- paste(data_nested$level1, data_nested$circle1.OI.Primary, data_nested$circle1.OI.Secondary, data_nested$circle1.FEMA, paste0(data_nested$circle1.MG.Name," ", "\nFEMA", data_nested$circle1.FEMA), sep = "/")
data_nested$value=7
data_Node <- as.Node(data_nested)
circle <- circlepackeR(data_Node, size = "value")
circle
But it still outputs the text in a single line instead of two lines. Is there anyway to create a single circle with two lines of text?
Hello,
I am developing a shiny app and am using circlepackeR for a visualization. I have multiple levels and everything is working fine but it does not appear that circlepackeR supports line breaks within a circle using "/n". I am trying to input two lines of text within a single circle using the following code:
data_nested$pathString <- paste(data_nested$level1, data_nested$circle1.OI.Primary, data_nested$circle1.OI.Secondary, data_nested$circle1.FEMA, paste0(data_nested$circle1.MG.Name," ", "\nFEMA", data_nested$circle1.FEMA), sep = "/")
data_nested$value=7
data_Node <- as.Node(data_nested)
circle <- circlepackeR(data_Node, size = "value")
circle
But it still outputs the text in a single line instead of two lines. Is there anyway to create a single circle with two lines of text?