Skip to content
Prev 363514 / 398502 Next

question about cleaning up data labels on a plot3d plot

Sure, you can do any of that in R.

You might benefit from reading some introductory material so you
understand at least graphical parameters and subsetting, but here's
some sample code with fake data that does what you're asking.

library(rgl)
x <- sort(rnorm(10))
y <- rnorm(10)
z <- rnorm(10) + atan2(x, y)

# version one: text only

plot3d(x, y, z, type="n")
text3d(x, y, z, text=letters[1:10], cex=2)


# version two: colored symbols
data.groups <- sample(1:3, size=10, replace=TRUE)
data.colors <- c("red", "purple", "blue")

plot3d(x, y, z, size=8, col=data.colors[data.groups])


Sarah
On Wed, Aug 24, 2016 at 1:57 AM, LMH <lmh_users-groups at molconn.com> wrote: