Creating a plot from scratch

When setting up a plot to later add further elements to, generally your life will be made easier if you still use the plot3js() function to achieve basic plot setup but do not supply and x, y or z data to plot.

However it is of course possible to call the lower level functions that plot3js() uses but to call them directly as demonstrated in a simple example below.

# Generate data
x <- runif(20, 0, 10)
y <- runif(20, 0, 20)
z <- runif(20, 0,