Re: [R] question about cleaning up data labels on a plot3d plot

2016-08-24 Thread LMH
Sarah Goslee wrote: text3d(x, y, z, text=letters[1:10], cex=2 Thank you for the help. Is there a way to remove the text from the plot as well. I am finding it difficult to see what I am looking for with the text in the way. It would be useful to be able to identify a point and then clear the

Re: [R] question about cleaning up data labels on a plot3d plot

2016-08-24 Thread Sarah Goslee
You could take a look at ?identify3d You should probably also read https://cran.r-project.org/web/packages/rgl/vignettes/rgl.html Beyond that, if it's difficult to see what you're looking for, maybe you should rethink your approach. Sarah On Wed, Aug 24, 2016 at 1:21 PM, LMH wrote: > Sarah Gos

Re: [R] question about cleaning up data labels on a plot3d plot

2016-08-24 Thread Sarah Goslee
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) + a

[R] question about cleaning up data labels on a plot3d plot

2016-08-24 Thread LMH
Hello, I am rather unfamiliar with R but need a 3D plot for something I am working on. I was able to generate a plot with the following, library(rgl) setwd("G:/shared_data/R_projects/3D_plot") df <- read.table("R_input_3D_PCA-3_RI9_60.txt", header = TRUE) plot3d(df$PCA_Axis1, df$PCA_Axis2, df$P