[R] What package I use to draw 3D plot after plsda?

Andris Jankevics andza at osi.lv
Fri May 8 11:26:23 CEST 2009


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.
>




More information about the R-help mailing list