bar3d: Adds a single 3D bar to the current scene

Description Usage Arguments Value Examples

View source: R/bar3d.R

Description

Adds a single 3D bar to the current scene

Usage

1
2
bar3d(x = c(0, 1), y = c(0, 1), z, alpha = 1, topcol = "#078E53",
  sidecol = "#aaaaaa", linecol = "#000000")

Arguments

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"

Value

Nothing is returned (invisibly returns NULL).

Examples

1
bar3d(c(0,1),c(0,1),3,alpha=0.6,topcol="#078E53",sidecol="#aaaaaa",linecol="#000000")

barplot3d documentation built on Nov. 6, 2019, 5:08 p.m.