pillar3D function

Create a 3D pillar chart to display (x, y, z) data coordinate surface.

Create a 3D pillar chart to display (x, y, z) data coordinate surface.

Given data on (x, y, z) coordinate values of a 3D surface, one can directly plot a 3D plot with pins of the height z. By contrast, this function fattens each pin by creating pillars near each z value by adding and subtracting small amounts of dz. By eliminating the pins of the height z, this depicts pillars that better resemble a surface. It uses the wireframe() function of the `lattice' package to do the plotting.

pillar3D( z = c(657, 936, 1111, 1201), x = c(280, 542, 722, 1168), y = c(162, 214, 186, 246), drape = TRUE, xlab = "y", ylab = "x", zlab = "z", mymain = "Pillar Chart" )

Arguments

  • z: z-coordinate values
  • x: x-coordinate values
  • y: y-coordinate values
  • drape: logical value, default drape=TRUE to give color to heights
  • xlab: default "x" label on the x axis
  • ylab: default "y" label on the y axis
  • zlab: default "z" label on the z axis
  • mymain: default "Pillar Chart" main label on the plot

Returns

A 3D plot

Details

For additional plotting features the user should type `pillar3D()' on the R console to get my code and adjust my wireframe() function defaults.

Examples

## Not run: pillar3D()) ## End(Not run)

Author(s)

Prof. H. D. Vinod, Economics Dept., Fordham University, NY

  • Maintainer: H. D. Vinod
  • License: GPL (>= 2)
  • Last published: 2023-10-09

Useful links