This function plots symbols similarly to
what the base graphics function
points does when
pch is specified.
1 2 3
The locations at which to plot in a form
suitable for use in
A vector of integers or single characters describing the symbols to plot.
The fill color(s) to use for
A relative size of the symbol to plot.
An absolute size of the symbol to plot in user coordinates.
The color(s) to use for symbols.
Whether the object responds to lighting or just shows the displayed color directly.
Other material properties.
The list of symbols encoded by numerical
pch values is given in the
points help page.
A vector of object id values is returned invisibly. Separate objects will be drawn
for each different combination of
pch value from
0 to 25,
bg, and another holding all the character
This function is not a perfect match to how the
points function works due
to limitations in rgl and OpenGL. In
Symbols with numbers from 1 to 25 are drawn
as 3D sprites (see
so they will resize as the window is zoomed.
Letters and numbers from 32 to 255 (which are
mapped to letters) are drawn using
so they maintain a fixed size.
A calculation somewhat like the one in
plot3d that sets the size
of spheres is used to choose the size of
sprites based on
cex and the
current scaling. This will likely need manual
tweaking. Use the
for a fixed size.
No special handling is done for the case of
pch = ".". Use
As of rgl version 0.100.10, background and foreground colors can vary from symbol to symbol.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.