Comments (4)
问题解决了。目前没有问题。
之前大概率是我自己jupyter的问题。
from r3dmol.
在 RStudio 中你应该是在 View 中点击 Export 导出图片的吧?目前包本身尚未支持导出成图片格式,如果想保存为图片的话可能需要用到 {webshot}
对 widgets 储存为网页然后截图导出。
输出图片功能肯定在未来需要加进去的,不过目前来说还是稍有难度,需要一些时间。
from r3dmol.
@sanbeichahegongheguo 已经追加了 m_png()
可将输出转换成png了。但是我还没有试过在 Jupyter Lab 中是否可用,理论上应该没问题。可以安装 GitHub 的开发版尝试并反馈一下嘛?谢谢。
# install.packages("devtools")
devtools::install_github("swsoyee/r3dmol")
r3dmol() %>%
m_add_model(data = pdb_1j72, format = "pdb") %>%
m_set_style(style = m_style_cartoon()) %>%
m_zoom_to() %>%
m_png(width = 800)
from r3dmol.
好,一会我就试试。
from r3dmol.
Related Issues (20)
- Addition of Interactive Buttons HOT 1
- Layout Support HOT 1
- Next Official Release HOT 7
- Bug about button layout
- predicted 3D structures in *pdb format HOT 3
- How to set the amino acid with special color? HOT 2
- m_png() with wrong result HOT 3
- Function request: resi label with less overlap HOT 1
- Implement `mapAtomProperties` function
- Problems with Widget Resizing Inside `{xaringan}` slides HOT 1
- Bump 3Dmol.js version to 1.7 HOT 2
- m_grid does not update in Shiny app with selectInput HOT 3
- Color by b-factor (spectrum) HOT 13
- Feature request: add colorfunc to argument to m_style_surface() and others HOT 2
- Save image as PNG in Shiny with a download button HOT 2
- How can I export this figure in the ShinyApp HOT 2
- Parts of structure disappear when rotating without m_zoom_to() HOT 2
- CRAN outdates
- m_add_label() prints label at wrong position HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r3dmol.