Hi. I was used to draw 2D plot to show distribution of my samples. It was very powerful in small samples. Recently , I handle a lot of type of samples as more 15. so, I want to use more dimention. I was used that I conduct plsda function and draw biplot, such as, p1=plsda(mw, sp) biplot(p1) How can I draw 3D graph with my data?? I don't know exactly numerical value each spot. please, help me. [[alternative HTML version deleted]]
Andris Jankevics
2009-May-08 09:26 UTC
[R] What package I use to draw 3D plot after plsda?
Hi, You want something like this? library (pls) data(yarn) library (scatterplot3d) yarn.pls <- plsr(density ~ NIR, 6, data = yarn, validation = "CV") palette (rainbow(length(yarn$density))) scatterplot3d (yarn.pls$scores[,1:3],pch=16,color=1:length(yarn$density),cex.symbols=2) ?scatterplot3d B.R Andris On Fri, May 8, 2009 at 9:07 AM, yongkook Kwon <yongkookkwon at gmail.com> wrote:> Hi. > > I was used to draw 2D plot to show distribution of my samples. ?It was very > powerful in small samples. > > Recently , I handle a lot of type of samples as more 15. > > so, I want to use more dimention. > > I was used that I conduct plsda function and draw biplot, such as, > > p1=plsda(mw, sp) > biplot(p1) > > > How can I draw 3D graph with my data?? > > I don't know exactly numerical value each spot. > > please, help me. > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >