Hi. I have some problem so, I want you to help me. I have to classify some data, and show the result as plot diagram to my boss. I decide to use plsr function in pls package to analysis that. My data are some similar oliveoli data in that package. so, I make my data to similar data.frame of oliveoil data. But, My data are not operated by function, because, My data has not same data frame of oliveoil data. How can I make my data to same data frame of that. the output of oliveoil ---------------------------------------------------------------------------- ----------------------------- > oliveoil chemical.Acidity chemical.Peroxide chemical.K232 chemical.K270 chemical.DK sensory.yellow sensory.green G1 0.73 12.7 1.9 0.139 0.003 21.4 73.4 G2 0.19 12.3 1.678 0.116 -0.004 23.4 66.3 G3 0.26 10.3 1.629 0.116 -0.005 32.7 53.5 G4 0.67 13.7 1.701 0.168 -0.002 30.2 58.3 G5 0.52 11.2 1.539 0.119 -0.001 51.8 32.5 I1 0.26 18.7 2.117 0.142 0.001 40.7 42.9 I2 0.24 15.3 1.891 0.116 0 53.8 30.4 I3 0.3 18.5 1.908 0.125 0.001 26.4 66.5 I4 0.35 15.6 1.824 0.104 0 65.7 12.1 I5 0.19 19.4 2.222 0.158 -0.003 45 31.9 S1 0.15 10.5 1.522 0.116 -0.004 70.9 12.2 S2 0.16 8.14 1.527 0.1063 -0.002 73.5 9.7 S3 0.27 12.5 1.555 0.093 -0.002 68.1 12 S4 0.16 11 1.573 0.094 -0.003 67.6 13.9 S5 0.24 10.8 1.331 0.085 -0.003 71.4 10.6 S6 0.3 11.4 1.415 0.093 -0.004 71.4 10 sensory.brown sensory.glossy sensory.transp sensory.syrup G1 10.1 79.7 75.2 50.3 G2 9.8 77.8 68.7 51.7 G3 8.7 82.3 83.2 45.4 G4 12.2 81.1 77.1 47.8 G5 8 72.4 65.3 46.5 I1 20.1 67.7 63.5 52.2 I2 11.5 77.8 77.3 45.2 I3 14.2 78.7 74.6 51.8 I4 10.3 81.6 79.6 48.3 I5 28.4 75.7 72.9 52.8 S1 10.8 87.7 88.1 44.5 S2 8.3 89.9 89.7 42.3 S3 10.8 78.4 75.1 46.4 S4 11.9 84.6 83.8 48.5 S5 10.8 88.1 88.5 46.7 S6 11.4 89.5 88.5 47.2 > colnames(oliveoil) [1] "chemical" "sensory" ---------------------------------------------------------------------------- ----------------------------------- > test_mtx sp.a sp.b sp.c mw.0.1 mw.0.2 mw.0.3 mw.0.4 1 1 0 0 123 123 123 123 2 1 0 0 134 134 134 134 3 0 1 0 456 456 456 456 4 0 1 0 475 475 475 475 5 0 0 1 689 689 689 689 6 0 0 1 789 789 789 789 > colnames(test_mtx) [1] "sp.a" "sp.b" "sp.c" "mw.0.1" "mw.0.2" "mw.0.3" "mw.0.4" ---------------------------------------------------------------------------- -------------------------------- I want to show figure in down side. ---------------------------------------------------------------------------- --------------------------------- > test_mtx sp.a sp.b sp.c mw.0.1 mw.0.2 mw.0.3 mw.0.4 1 1 0 0 123 123 123 123 2 1 0 0 134 134 134 134 3 0 1 0 456 456 456 456 4 0 1 0 475 475 475 475 5 0 0 1 689 689 689 689 6 0 0 1 789 789 789 789 > colnames(test_mtx) [1] "sp","mw" ???????????? ???????? ???????????? ????????????????... [1][wVpvTe.LSMSRNyWa4ML8cw00] [???????????? Express][2]???????????????????? ???????????????????? ????????????! [3]???????????????? ???????????? [@from=aliel83&rcpt=r%2Dhelp%40r%2Dproject%2Eorg&msgid=%3C20090429165820%2EH M%2EN000000000Ebpct%40aliel83%2Ewwl513%2Ehanmail%2Enet%3E] References Visible links 1. mailto:aliel83 at hanmail.net 2. http://allim.daum.net/servlet/Redirect?sid=footer_090223_ex 3. http://agora.media.daum.net/petition/donation/view?id=68774 Hidden links: 4. http://daumdirect.daum.net/websales/main/event/20080516_woori_event.jsp?_partner_code.key=9100009