How to embed the Jmol applet into a Shiny Application?

154 views
Skip to first unread message

CampaXic Campanera

unread,
Sep 26, 2013, 6:58:26 PM9/26/13
to shiny-...@googlegroups.com
Dear users,
I'd like to visualize molecular models into a Rshiny application, coordinate files like XYZ or PDB. The easiest way is to use the applet Jmol (an open-source Java viewer for chemical structures in 3D, http://jmol.sourceforge.net/index.en.html) but the question is how to embed such a tool into an Rshiny application in an easy way (I'm an R user but not expert in HTML or java)?

All ideas, documents, suggestions and comments will be welcome!

All the best and congratulations for Rshiny!

Josep M. Campanera,

Kirill Savin

unread,
Sep 26, 2013, 11:49:26 PM9/26/13
to shiny-...@googlegroups.com
You won't be able to avoid writing JS code.

You'll need to include Jmol.js to your shiny app with tags$script and write some sort of initializer that'll include the applet to your page using jmol.js API and receives data from R.

I suggest starting with Dashboard example.

Good luck.
Reply all
Reply to author
Forward
0 new messages