Description Usage Arguments Value Examples
Adds a 3D bar plot to the current RGL scene
1 2 3 4 5 |
rows |
How many rows the plotting area should have, an integer, e.g. 5. |
cols |
How many columns the plotting area should have, an integer, e.g. 5. |
x |
The x dimensions of each 3D bar, a vector of length 2 e.g. c(0,1). |
y |
The y dimensions of each 3D bar, a vector of length 2 e.g. c(0,1). |
z |
The height of each 3D bar, a numeric vector, e.g c(2,3,5,2,9). |
alpha |
The alpha channel (transparency) of the sides of 3D bars. Range 0-1. |
scalexy |
Scaling factor for x and y coordinates; this constant can be used to make the plot "skinnier" or "fatter". |
gap |
Gap between 3D bars (recommended values are 0 or 0.2). |
topcolors |
The color of the top of each 3D bar. Numeric vector of hexadecimal RGB colors, like those returned by rgb() e.g. "#078E53". |
sidecolors |
The color of the top of the bar. Should be a hexadecimal RGB color, like that returned by rgb() e.g. "#aaaaaa". |
linecolors |
The color of the edges of the bar. Should be a hexadecimal RGB color, like that returned by rgb() e.g. "#aaaaaa". |
theta |
Polar coordinate for viewing the 3D barplot; range 0 to 360 (rotates the plot). |
phi |
Polar coordinate for viewing the 3D barplot; range -90 to 90 (-90 is directly below, 90 directly above). |
gridlines |
Draw gridlines on the plot (TRUE or FALSE). |
xlabels |
Labels for the x axis (must be a vector of names the same length as "cols" parameter). |
ylabels |
Labels for the y axis (must be a vector of names the same length as "rows" parameter). |
zlabels |
Labels for the z axis; add numeric scale to the vertical dimension of the plot (TRUE or FALSE). |
xsub |
Descriptive label for the x axis. |
ysub |
Descriptive label for the y axis. |
zsub |
Descriptive label for the z axis. |
Nothing is returned (invisibly returns NULL).
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.