powered by
Adds a single 3D bar to the current scene
bar3d(x = c(0, 1), y = c(0, 1), z, alpha = 1, topcol = "#078E53", sidecol = "#aaaaaa", linecol = "#000000")
The x dimensions of the bar, a vector of length 2 e.g. c(0,1).
The y dimensions of the bar, a vector of length 2 e.g. c(0,1).
The height of the bar, a single number, e.g 3.
The alpha channel (transparency) of the sides of the bar. Range 0-1.
The color of the top of the bar. Text description or hexadecimal RGB color, like that returned by rgb() e.g. "red" or "#078E53"
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"
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).
# NOT RUN { bar3d(c(0,1),c(0,1),3,alpha=0.6,topcol="#078E53",sidecol="#aaaaaa",linecol="#000000") # }
Run the code above in your browser using DataLab