Closed aadamk closed 3 years ago
Hi, I usually save the dtnetplot
output either by clicking the Export
button in Rstudio or by clicking show in new window
button or save it as a webpage to load it via Chrome and take a screenshot.
Using webshot
package is also a good choice! Thanks for coming up with it. The webshot function has the delay
argument to allow time to wait before taking a screenshot in seconds. It takes some time to load the dtnetplot
HTML page. So please remember to set the delay
argument as 1 or 2 minutes. The code will be like
webshot(html_name, zoom = 1, file = "tmp.pdf", delay=60)
Hope it works for you.
Best, Yuzhu
Many thanks for the suggestions Yuzhu! The delay argument solved it. Closing this issue. Best, Adam
Hello, Is it possible to save the dtnetplot output as a static pdf image?
I have unsuccessfully attempted to save as an html then use
webshot
to capture in a pdf with the following code:However, my output looks like the following: