lastID: Get the ID of the last object(s) added

View source: R/3JSgroups.R

lastIDR Documentation

Get the ID of the last object(s) added

Description

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.

Usage

lastID(data3js)

Arguments

data3js

The data3js object

Value

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.


r3js documentation built on March 31, 2023, 7:23 p.m.