Skip to content
Prev 82066 / 398506 Next

cloud() 3D scatter plot

On 12/2/05, Michelle DePrenger-Levin <DePrengM at botanicgardens.org> wrote:
It's difficult to say without a reproducible example. The following
works as expected for me:

g <- gl(4, 50)
mu <- 2 * as.numeric(g)
x <- rnorm(200, mean = mu)
y <- rnorm(200, mean = mu)
z <- rnorm(200, mean = mu)

cloud(z ~ x * y, groups = g,
      col = c("blue", "red", "orange", "green"),
      pch = c(20, 20, 22, 22))

The only explanation I can think of is that your grouping variable has
more than 4 levels. What does

table(RMM$Treatment)

give you? Although, that doesn't explain why cex would work.

-Deepayan