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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24 persp3d<br />

xlim, ylim, zlim<br />

x-, y- and z-limits. <strong>The</strong> plot is produced so that the rectangular volume defined<br />

by these limits is visible.<br />

xlab, ylab, zlab<br />

titles for the axes. N.B. <strong>The</strong>se must be character strings; expressions are not<br />

accepted. Numbers will be coerced to character strings.<br />

add<br />

Details<br />

Value<br />

aspect<br />

whether to add the points to an existing plot.<br />

either a logical indicating whether to adjust the aspect ratio, or a new ratio<br />

... additional material parameters to be passed to surface3d and decorate3d.<br />

This is similar to persp with user interaction. See plot3d for more general details.<br />

One difference from persp is that colors are specified on each vertex, rather than on each facet of<br />

the surface. To emulate the persp color handling, you need to do the following. First, convert the<br />

color vector to an (nx-1) by (ny-1) matrix; then add an extra row before row 1, and an extra<br />

column after the last column, to convert it to nx by ny. (<strong>The</strong>se extra colors will not be used). For<br />

example, col

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

Saved successfully!

Ooh no, something went wrong!