Description Usage Arguments Value Note Author(s) See Also Examples
To plot mathematical text, this function uses base graphics functions to plot it to a ‘.png’ file, then uses that file as a texture in a sprite.
1 2 3 |
x, y, z |
coordinates. Any reasonable way of defining the
coordinates is acceptable. See the function |
text |
A character vector or expression. See
|
cex |
Character size expansion. |
adj |
one value specifying the horizontal adjustment, or two, specifying horizontal and vertical adjustment respectively. |
pos, offset |
alternate way to specify |
fixedSize |
Should the resulting sprite behave like the default ones, and resize with the scene, or like text, and stay at a fixed size? |
startsize, initCex |
These parameters are unlikely to be needed by users.
|
... |
Additional arguments to pass to
|
Called for the side effect of displaying the sprites. The shape ID of the displayed object is returned.
The text3d
function passes calls to this
function if its usePlotmath
argument is TRUE
.
The default value is determined by examining its
texts
argument; if it looks like an expression,
plotmath3d
is used.
Duncan Murdoch
1 2 3 4 | open3d()
plotmath3d(1:3, 1:3, 1:3, expression(x[1] == 1, x[2] == 2, x[3] == 3))
# This lets the text resize with the plot
text3d(4, 4, 4, "resizeable text", usePlotmath = TRUE, fixedSize = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.