-
Notifications
You must be signed in to change notification settings - Fork 40
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
Trouble saving plots under format other than html #90
Comments
The code there doesn't work with newer versions of
|
Thx, Sebastian. A similar way is this: Pre-requisite: DiagrmmeRsvg and dependencies need to be installed Depending on your OS, you might have to install V8. For example on ubuntu:
On my Windows system, I didn't have to install anything (maybe because Chrome is installed)? Once DiagrammeRsvg is available, run:
|
Thank you Sebastian and Christoph. I am still stuck, though, probably on the step described by Christoph. When I execute the code, even with DiagramRsvg installed, I get an error message: |
Are you sure DiagrammeRsvg installed without errors? Can you check if the r package is installed? My guess is that v8 is not installed. Here's a link, though I couldn't try it out myself: http://macappstore.org/v8/ |
Thanks Christoph. I could install v8 following the link you sent. But the problem persists. I will send you the output of my session, just based on trying to execute the code you sent on the acme data. Many thanks again. |
@paulegre This is likely due to an install issue with rsvg. On Mac you will need to install librsvg. See comments on jeroen's github page linked below |
Thanks much. Following your advice I installed librsvg from my Terminal, following instructions found at: http://macappstore.org/librsvg/ |
Hi Cristoph, library(data.tree) I was wondering if there is a way to add a title and legend to the exported pdf file. |
Data.tree allows you to generate plots for trees very easily with the "plot" command. However, saving the resulting image in formats such as png, pdf, or jpeg fails (even using Rstudio). The issue was mentioned already on the web ( http://stackoverflow.com/questions/42108105/in-r-how-do-i-save-a-data-tree-plot-to-a-file) but the answers provided there did not work for me, so I have used screenshots for the time being. I will continue to look into the documentation from the inbuilt packages used by data.tree, but it would be nice eventually if some additional piece of code can be extracted for users of data.tree like me who appreciate the self-contained aspect of the package.
The text was updated successfully, but these errors were encountered: