Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You could try the <code>vrmlgen</code> package. It will produce 3d VRML files that can be displayed with a browser plugin; you can find a plugin at <a href="http://cic.nist.gov/vrml/vbdetect.html" rel="noreferrer">VRML Plugin and Browser Detector</a>.</p> <p>Once you've installed a plugin, try this:</p> <pre><code>require(vrmlgen) example(bar3d) </code></pre> <p>NB: the example code didn't automatically open in a browser for me (RStudio, Win7, Chrome) because the path got mangled. You might need to use:</p> <pre><code>require(stringr) browseURL(str_replace_all(file.path(outdir, 'barplot.html'), fixed('\\'), '/')) </code></pre> <p>If you don't want to install a VRML plugin, you could use X3DOM instead. You'll need a <a href="http://www.x3dom.org/?page_id=532" rel="noreferrer">converter</a>, but your users should be able to view them with just a (modern) browser. You might have to modify the following code to get the paths right:</p> <pre><code>setwd(outdir) aopt &lt;- 'C:/PROGRA~1/INSTAN~1/bin/aopt' # Path to conversion program vrml &lt;- 'barplot.wrl' x3dom &lt;- 'barx.html' command &lt;- paste(aopt, '-i', vrml, '-N', x3dom) system(command) # LOG Avalon Init: 47/616, V2.0.0 build: R-21023 Jan 12 2011 # LOG Avalon Read url # LOG Avalon Read time: 0.074000 # ============================================ # Call: writeHTML with 1 param # Write raw-data to barx.html as text/html # WARNING Avalon Run NodeNameSpace "scene" destructor and _nodeCount == 3 # WARNING Avalon Try to remove nodes from parents # WARNING Avalon PopupText without component, cannot unregister # WARNING Avalon Avalon::exitSystem() call and node/obj left: 0/3331 browseURL(file.path(outdir, 'barx.html')) setwd(curdir) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload