rgl_init: Initializes a rgl device

Description Usage Arguments Note See Also Examples

View source: R/rgl_device_setup.R

Description

Initializes a new rgl device using specific settings.

Usage

1
2
3
rgl_init(new_device = FALSE, bg_color = "white", view_theta = 15,
  view_phi = 20, view_fov = 60, view_zoom = 0.8, width = 800,
  height = 600)

Arguments

new_device

If there is a rgl device open, should yet another be opened?

bg_color

The background color (bg3d).

view_theta, view_phi, view_fov, view_zoom

The theta and phi angles (polar coordinates), the field-of-view angle, and the zoom level of the viewpoint (view3d).

width, height

The width and height of the rgl device window in pixels (par3d).

Note

This function is based on the tutorial "A complete guide to 3D visualization device system in R - R software and data visualization" available in sthda.com Web site and last accessed in may 24 2016 (http://www.sthda.com/english/wiki/a-complete-guide-to-3d-visualization-device-system-in-r-r-software-and-data-visualization)

See Also

bg3d, view3d, par3d, rgl.open, rgl.close, rgl.clear

Examples

1
2
3
4
5
6
7
8
## Not run: 

rgl_init()
rgl_init(bg = "black")
rgl_init(width = 400, height = 300)


## End(Not run)

Andros-Spica/biplot2d3d documentation built on June 10, 2020, 1:38 p.m.