Comments (1)
Thank you for using this broken package.
I have just noticed that 3Dmol has been upgrade to v2.x and has many break changes.
I don't have time to upgrade r3dmol for now, but there is a very tricky way to partially accomplish your goal
style <- m_style_label(
backgroundColor = "#666666",
backgroundOpacity = 0.9
)
style$screenOffset <- list(x = 0, y = 100) # Add this option with a X and Y. Z did not work.
r3dmol() %>%
m_add_model(data = pdb_6zsl, format = "pdb") %>%
m_add_label(
text = "Label",
sel = m_vector3(3, 0, 1),
style = style
) |>
m_add_arrow(
start = m_vector3(3, 10, 1),
end = m_sel(resi = 3),
spec = m_shape_spec(color = "green")
) |>
m_zoom_to()
Based on the view, the arrow's end coordinates don't always seem to be in the same fixed position as the label. So maybe you need to have several attempts at the coordinates to get an optimal value.
from r3dmol.
Related Issues (20)
- Addition of Interactive Buttons HOT 1
- Layout Support HOT 1
- 就是问一下,如何在jupyter lab 里输出图片?虽然貌似不是包本身的问题。 HOT 4
- 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
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.