Open XuJahcenia opened 4 months ago
I draw a sankey plot in R:
`p <- sankeyNetwork(Links = links, Nodes = nodes, Source = "SourceID", #sourceID Target = "TargetID", #targetID Value = "value", NodeID = "name", colourScale=my_color,
LinkGroup = 'subtype', fontFamily = "arial", fontSize = 15, nodeWidth = 40, sinksRight = F, height = 400, width = 550) `
And the position of the nodes in the graph can be adjusted manually. But I saved this graph by webshot2::webshot, but those adjustment cannot be saved.
saveNetwork(p,"m6A_type_OS.html") webshot("m6A_type_OS.html" , "m6A_type_OS.pdf")
saveNetwork(p,"m6A_type_OS.html")
webshot("m6A_type_OS.html" , "m6A_type_OS.pdf")
Can somebody give me some advice?
I suggest using webshot2 instead of webshot. From the README in this repository:
Note: webshot uses PhantomJS, which is a headless browser that stopped development in 2018. Please use webshot2, which uses Chromium-based browsers.
I draw a sankey plot in R:
`p <- sankeyNetwork(Links = links, Nodes = nodes, Source = "SourceID", #sourceID Target = "TargetID", #targetID Value = "value", NodeID = "name", colourScale=my_color,
nodePadding = 20,
And the position of the nodes in the graph can be adjusted manually. But I saved this graph by webshot2::webshot, but those adjustment cannot be saved.
saveNetwork(p,"m6A_type_OS.html")
webshot("m6A_type_OS.html" , "m6A_type_OS.pdf")
Can somebody give me some advice?