Description Usage Arguments Value Examples
Adds a single 3D bar to the current scene
1 2 |
x |
The x dimensions of the bar, a vector of length 2 e.g. c(0,1). |
y |
The y dimensions of the bar, a vector of length 2 e.g. c(0,1). |
z |
The height of the bar, a single number, e.g 3. |
alpha |
The alpha channel (transparency) of the sides of the bar. Range 0-1. |
topcol |
The color of the top of the bar. Text description or hexadecimal RGB color, like that returned by rgb() e.g. "red" or "#078E53" |
sidecol |
The color of the sides of the bar. Text description or a hexadecimal RGB color, like that returned by rgb() e.g. "gray" or "#aaaaaa" |
linecol |
The color of the edges of the bar. Text description or be a hexadecimal RGB color, like that returned by rgb() e.g. "black" or "#000000" |
Nothing is returned (invisibly returns NULL).
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.