-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Easiest way to export svg/pdf/png? #54
Comments
Hi, you could use function m_png to export a png figure |
Hi, thanks for your fast response. Apologies for not getting this yet. So if I run the following: ribbon_structure_png <- r3dmol() %>%
m_add_models(m_bio3d(pdb)) %>%
m_set_style(m_style_cartoon(color = "white")) %>%
m_set_background_color(gray(0.9)) %>%
m_add_outline()
m_png() How do I then save this object as a .png to disk and control resolution etc? I am using RStudio. |
Sorry, it didn't support resolution and save to disk options. r3dmol/inst/htmlwidgets/r3dmol.js Lines 200 to 209 in 0eefc1c
You could set the size of viewer (https://swsoyee.github.io/r3dmol/reference/init.html), right click and save the image directly. |
Okay great, thanks for your help! Also once again, amazing software which we are using in an upcoming paper! |
Hi,
Really love this tool and have made some awesome html-based figures. Do you have any guidance on the best way to export highres svg/pdf/png figures from this? Or natively from the r3dmol object?
Thanks
The text was updated successfully, but these errors were encountered: