Most plots we generate in bioinformatics are static and stuck in a two-dimensional plane, but modern web technologies allow us to interact with three-dimensional objects with dynamic rendering. The plotly library has tools for rendering different kinds of 3D plots and in this recipe, we'll look at how to construct a 3D surface plot and a scatter plot with x, y, and z axes.
Constructing three-dimensional plots with plotly
Getting ready
In this recipe, we'll use the plotly library again and the built-in longley dataset of economic data.
How to do it...
Constructing...