Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusted .html could not be saved in .pdf #124

Open
XuJahcenia opened this issue Apr 24, 2024 · 1 comment
Open

Adjusted .html could not be saved in .pdf #124

XuJahcenia opened this issue Apr 24, 2024 · 1 comment

Comments

@XuJahcenia
Copy link

XuJahcenia commented Apr 24, 2024

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, 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")

Can somebody give me some advice?

@wch
Copy link
Owner

wch commented Apr 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants