# [R] 4D stacked column chart, Excel -> R

From: <waeltlmi_at_fh-albsig.de>
Date: Tue 28 Feb 2006 - 04:56:21 EST

The chart should be actually a 3D chart of the type 3D Column Chart with following achsis:

```X Achsis: driven kilometre in 10000 blocks
Y Achsis: Production month
Z Achsis: number
```

I need to show another month in that chart, the repair month. Each column should be a stacked column with more colors, so that every color shows one repair month.

I tried to do it with the scatterplot3d function after I saw this example (it is from uwe ligges book): install.packages("scatterplot3d")
library("scatterplot3d")
data(trees)
s3d <- scatterplot3d(trees, type = "h", angle = 55, scale.y = 0.7, pch = 16, main = "trees") my.lm <- with(trees, lm(Volume ~ Girth + Height) ) s3d\$plane3d(my.lm, lty.box = "solid" )

Normally I just have to group the ranges which show the km in 10000 blocks and group the points as well, but I didn't come that far. even the scatterplot3d funtion didn't work for my data (gwx and x is my data table).
x <- gw.faelle(gwx)

k3d <- scatterplot3d(x, type = "h", angle = 55, scale.y = 0.7, pch = 16, main = "GWK" ) Error in segments(x, z, x, z2, col = col, cex = cex.symbols, ...) :
invalid color specification

Do you have an idea how I can accomplish this task? Is it at allpossible to do that with scatterplot and some low level functions orshall I look at other packages and functions?

Thanks in advance for any help and ideas!

Best regards,
Michael

```--

--

[[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help