bar3d {barplot3d}R Documentation

Adds a single 3D bar to the current scene

Description

Adds a single 3D bar to the current scene

Usage

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


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

[Package barplot3d version 1.0.1 Index]