ABSTRACT

Base R has limited ability in graphing three-dimensional objects. This chapter illustrates the use of the rgl package to get the added feature of interactive graphs that can be rotated. The rgl package produces interactive graphs, meaning that they can be rotated in any direction and can be zoomed in and out. The chapter presents two examples to illustrate the turn3d function in the rgl package. The first example rotates a curve around the x-axis and add four discs to estimate the volume. The second example rotates the area bounded by two curves around the x-axis. The chapter also illustrates creation of interactive geometric solids using the rgl package.