lastID | R Documentation |
Get the ID of the last object(s) added to an data3js object, this is useful when for example wanting to link different objects together into groups, you can use this function after adding each of them to keep a record of their unique plot id.
lastID(data3js)
data3js |
The data3js object |
Returns a vector of ID(s) for the last object added. After e.g. sphere3js()
, this
will simply be a single id relating to the sphere added, after e.g. points3js()
this will
be a vector of ids relating to each point in turn.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.