pillar3D | R Documentation |
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"
)
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 |
For additional plotting features the user should type ‘pillar3D()’ on the R console to get my code and adjust my wireframe() function defaults.
A 3D plot
Prof. H. D. Vinod, Economics Dept., Fordham University, NY
## Not run:
pillar3D())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.