Displaying 1 result from an estimated 1 matches for "plsr1".
Did you mean:
plsr
2008 Dec 19
0
How to plot arrows for a PLS plot with ggplot2?
Dear community,
I'd like to build a PLS plot with scores and loadings, sometimes
called "biplot". Like in biplot.mvr {pls} but using ggplot2.
1. Scores plot. No problem!
ggplot(data=data1,aes(x=plsr1,y=plsr2))+geom_point(aes(colour=solenergy,shape=type))+geom_text(aes(label=res,size=1,hjust=0,vjust=0))
where,
> str(data1)
'data.frame': 295 obs. of 5 variables:
$ plsr1 : num 1.60 1.49 1.42 1.17 1.35 ...
$ plsr2 : num -1.822 -1.987 -0.758 0.172 0.421 ...
$ res : F...