On 13.07.2014 20:30, Babak Bastan wrote:
I would like to visualize my data in a scatterplot3d

On my X and Y axis, I would like the same labels. Something like this:

x<-c("A", "B", "c", "D")

y<-c("A", "B", "c", "D")


on the Z axis, I would like to show the comparison between labels in X and Y


A with A

A with B

A with C

A with D

B with B

B with C

B with D

C with C

C with D

D with D


I have such a time series for this comparison.

z<-c(0.25, 0.14, 0.15, 0.32, 0.79, 0.98,1.25, 0.68, 2.02, 0.64)

How can I draw such a 3d scatter plot in r?


What about:

x <- factor(unlist(mapply(rep, LETTERS[1:4], each=4:1)))
y <- factor(LETTERS[c(1:4, 2:4, 3:4, 4)])
z <- c(0.25, 0.14, 0.15, 0.32, 0.79, 0.98,1.25, 0.68, 2.02, 0.64)
library("scatterplot3d")
scatterplot3d(x, y, z, type="h", x.ticklabs=LETTERS[1:4],
    y.ticklabs=LETTERS[1:4], lab=c(4,4,4))

Best,
Uwe Ligges


thank you

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to