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

View source: R/pillar3D.R

pillar3DR Documentation

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

Description

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.

Usage

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

Details

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

Value

A 3D plot

Author(s)

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

Examples


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


generalCorr documentation built on Oct. 10, 2023, 1:06 a.m.