O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

The scatter3D() function from the plot3D package has the following parameters:

  • x, y, z: Vectors of point coordinates
  • colvar: A variable used for the coloring
  • col: A color palette to color the colvar variable
  • labels: Refers to the text to be written
  • add: Logical; if TRUE, then the points will be added to the current plot, and if FALSE, a new plot is started
  • pch: Shape of the points
  • cex: Size of the points
  • theta: The azimuthal direction
  • phi: Co-latitude; both theta and phi can be used to define the angles for the viewing direction
  • Bty: Refers to the type of enclosing box and can take various values such as f-full box, b-default value (back panels only), g- grey background with white grid lines, and bl- black background

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required