08.04.2015 Views

The rgl Package - NexTag Supports Open Source Initiatives

The rgl Package - NexTag Supports Open Source Initiatives

The rgl Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8 bg<br />

Details<br />

Three different types of tick mark layouts are possible. If at is not NULL, the ticks are set up<br />

at custom positions. If unit is not zero, it defines the tick mark base. If length is not zero, it<br />

specifies the number of ticks that are automatically specified. <strong>The</strong> first colour specifies the bounding<br />

box, while the second one specifies the tick mark and font colour.<br />

bbox3d defaults to pretty locations for the axis labels and a slightly larger box, whereas <strong>rgl</strong>.bbox<br />

covers the exact range.<br />

axes3d offers more flexibility in the specification of the axes, but they are static, unlike those<br />

drawn by <strong>rgl</strong>.bbox and bbox3d.<br />

Value<br />

This function is called for the side effect of setting the bounding box decoration. A shape ID is<br />

returned to allow <strong>rgl</strong>.pop to delete it.<br />

See Also<br />

<strong>rgl</strong>.material, axes3d<br />

Examples<br />

<strong>rgl</strong>.open()<br />

<strong>rgl</strong>.points(rnorm(100), rnorm(100), rnorm(100))<br />

<strong>rgl</strong>.bbox(color=c("#333377","white"), emission="#333377",<br />

specular="#3333FF", shininess=5, alpha=0.8 )<br />

open3d()<br />

points3d(rnorm(100), rnorm(100), rnorm(100))<br />

bbox3d(color=c("#333377","white"), emission="#333377",<br />

specular="#3333FF", shininess=5, alpha=0.8)<br />

bg<br />

Set up Background<br />

Description<br />

Setup the background environment of the scene.<br />

Usage<br />

bg3d(...)<br />

<strong>rgl</strong>.bg( sphere = FALSE, fogtype = "none", color=c("black","white"),<br />

back="lines", ...)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!