September 2017
Beginner to intermediate
560 pages
25h 18m
English
We can use the text3D() function to add text based on the car model name, alongside the data points:
> scatter3D(x=mtcars$wt, y=mtcars$disp, z=mtcars$mpg, phi = 0, bty = "g", pch = 20, cex = 0.5)> text3D(x=mtcars$wt, y=mtcars$disp, z=mtcars$mpg, labels = rownames(mtcars), add = TRUE, colkey = FALSE, cex = 0.5)

Read now
Unlock full access