ABSTRACT

As it turns out, by simply adding a z attribute plot_ly() automatically renders markers, lines, and paths in three dimensions. That means, all the techniques we learned in Sections 3.1 and 3.2 can be re-used for 3D charts: plot_ly(mpg, x = ~cty, y = ~hwy, z = ~cyl) %>%    add_markers(color = ~cyl) A 3D scatterplot. https://s3-euw1-ap-pe-df-pch-content-public-p.s3.eu-west-1.amazonaws.com/9780429447273/5aa76a70-2d8a-4f48-af74-4a299517eb99/content/fig8_1.tif" xmlns:xlink="https://www.w3.org/1999/xlink"/>