rgl.new {rglplus}R Documentation

Open and initialize new 3D plot

Description

Calls open3d and various additional functions to initialize a 3d plot.

Usage

rgl.new(
  width = 0.5,
  aspect = 16/9,
  orientation = "xy",
  fov = 30,
  col = "white",
  light = TRUE,
  xlim = c(0, 1),
  ylim = c(0, 1),
  zlim = c(0, 1),
  xlab = NULL,
  ylab = NULL,
  zlab = NULL,
  axes = FALSE,
  fixed = TRUE,
  close.all = TRUE,
  ...
)

Arguments

width

either an integer (>1) specifying the number of pixels in the horizontal direction, or a real value (>0 and <=1) specifying the fraction of the available pixels. If the selected aspect ratio causes the number of vertical pixels to exceed the available number, the width is reduced as much as necessary.

aspect

aspect ratio of window, defined as the ratio of vertical-to-horizontal size.

orientation

3-by-3 rotation matrix or 2-character string specifying the orientation of the camera. For character string the allowed values are 'xy', 'yx', 'yz', 'zy', 'zx', 'xz', where the first letter is the axis displayed from left to right and the second letter is the axis displayed from bottom to top. The third axis points either out of the screen or into the screen following the right-hand convention. This is the same as the plane argument of rgl.orthoview.

fov

field of view in degrees, as used in view3d

col

background color

light

logical flag. If TRUE, the standard light source created by open3d will be light up the scene. If FALSE, no light source is added and the user must create custom light sources manually by calling light3d.

xlim

2-vector specifying the range along the x-axis

ylim

2-vector specifying the range along the y-axis

zlim

2-vector specifying the range along the z-axis

xlab

character string specifying the label of the x-axis

ylab

character string specifying the label of the y-axis

zlab

character string specifying the label of the z-axis

axes

logical flag specifying whether axes are displayed

fixed

logical flag. If TRUE (default), the range of the axes is *not* adjusted as objects are drawn.

close.all

logical flag. If TRUE (default), all existing rgl windows are closed before the new window is opened.

...

additional arguments for view3d.

Value

None

Author(s)

Danail Obreschkow


[Package rglplus version 1.3 Index]