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

Rendering to screen without writing to file #6

Open
krassowski opened this issue Nov 25, 2022 · 1 comment
Open

Rendering to screen without writing to file #6

krassowski opened this issue Nov 25, 2022 · 1 comment

Comments

@krassowski
Copy link

I am attempting to use SBGNview in Jupyter notebook. I am not interested in saving the result to file but only in embedding the SVG string in the notebook for interactive viewing. Would it be possible to add a utility function allowing to displaying the result? Most R packages I know use print for display and have a dedicated save method, but here the print.SBGNview is used as save which prevents some use-cases. I am happy to open PR if this is welcome.

@micwij
Copy link

micwij commented May 31, 2023

I want to second this idea. This would be helpful also if you want to save the plot to e.g. an .RDS file for later. For example, I often write plots to .RDS-files to assemble them later with the cowplot-package. Currently as a workaround, I am trying to read the .svg file back into R with the magick package and use the ggplotify package to convert the image into a ggplot object. This seems to work for now but being able to directly access the object would make it easier to handle it as an e.g. grid object or rendering it directly to the screen as described above.

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