Uses devout::rdevice()
.
rgldev( filename = NULL, width = 8, height = 6, dpi = 72, fov = 0, view = c("front", "flat"), view_angle = 0, view_flat_angle = -45, zoom = 0.8, view3d_args = NULL, light = list(theta = 20, phi = 20), background = list(color = "white"), zscale = 1, close_window = FALSE, circle_segments = 10, show_window = interactive(), verbosity = 0, polygon_offset_delta = 0.1, ... )
filename | Filename to save output to. Default: NULL (display only).
Currently only PNG (use '.png' as suffix) and WebGL (use '.html' as
suffix) output supported. Consider using |
---|---|
width, height | Screen or output dimensions in inches. Default 8x6 |
dpi | Resolution. Default 72 (for screen display). A higher value (e.g. 150 or 300) is recommended when saving to PNG. |
fov | Field of view. Default: 0, indicates an isometric view where objects do not dimish with size into the distance. For regular perspective, try values of 30, or really anythin in the range [0, 180]. |
view | One of 'front', 'flat'. This will be ignored if |
view_angle | rotation angle of view in degrees. Only used if |
view_flat_angle | angle to tip view when view is 'flat'. |
zoom | zoom level. default 0.66. Larger values make the plot appear further from the screen. |
view3d_args | full viewpoint specification as a list of arguments to
|
light | Set the light position. This is a list of arguments to a call
to |
background | Set the initial background. This is a list of arguments
to a call to |
zscale | Global Z scaling. Default: 1. This is used as the argument
in a call to |
close_window | Close window when |
circle_segments | Circles in |
show_window | Show rendering window? Default: display window only if
|
verbosity | Set the verbosity level. Default 0 (be quiet), values up to 99 for maximum verbosity. |
polygon_offset_delta | incremental change in |
... | other args passed in to device 'rdata' |