Learn R Programming

epade (version 0.2.2)

bar3d.ade: 3D Bar-Plot

Description

Draw pseudo 3d Bar-Plot

Usage

bar3d.ade(x, y=NULL, data=NULL, xw=0.5, zw=1,
          main=NULL, xlab=NULL, ylab=NULL, zlab=NULL,
          xticks=NULL, yticks=NULL, zticks=NULL,
          col=NULL, tcol=NULL, bgcol=NULL, lcol=NULL, alpha=NULL,
          axes=TRUE, fgbox=TRUE, bgbox=TRUE, wall=0)

Arguments

x
  • a table or matrix
a numeric vector or factor a string with the name of the variable in the data.frame a formula x~y

item

  • y
  • a string with the name of the variable in the data.frame
  • data
  • xw
  • zw
  • main
  • xlab
  • ylab
  • zlab
  • xticks
  • yticks
  • zticks
  • col
  • a vector of colors
  • a matrix of colors
  • tcol
  • bgcol
  • lcol
  • alpha
  • axes
  • fgbox
  • bgbox
  • wall

itemize

  • a color for the bars

See Also

bar.plot.ade

Examples

Run this code
bar3d.ade(rpois(200,2), rpois(200,2), wall=3)
x <- seq(-16, 16, length= 48)
y <- x
f <- function(x,y) { r <- sqrt(x^2+y^2); 10 * sin(r)/r }
z <- outer(x, y, f)
z[is.na(z)] <- 1
bar3d.ade(z, wall=2, xw=1, zw=0.2, axes=FALSE, bgbox=FALSE,
xlab='', ylab='', zlab='', alpha=1, col='lavender')

Run the code above in your browser using DataLab