Hi all Sorry in advance I have this txt with data and I want to plot the data with a line between dots. The thing is that if I run this g<-read.table("ip.txt") plot(g,type="l") I have prove to attach(g) but doesn? t work. I know is a begginer question and sure is of the type of data or the file but I can?t find where is the solution. It appears: Error in plot.default(xlim, ylim, type = "n", ann = FALSE, axes = FALSE, : "type" in associated with multiple argumetns specified Can anyone give me a clue...I will send a Parma ham ???Many thaks??? I promise not to ask again but I would said I was sure that that sentences worked. -------------- next part -------------- 14830 15078 15252 15104 15000 15036 14882 14785 14848 14755 14682 14820 14892 14805 14869 14990 14907 15058 14975 14824 14766 14942 15024 15110 15154 15059 15207 14930 15057 14913 14938 14540 14588 14508 14802 14596 14679 14534 14432 14653 15004 14838 14454 14732 14553 14521 13980 14238 14269 14240 14359 14293 14334 14306 14125 14184 14313 14480 14547 14590 14240 14198 13873 13726 13966 13980 14078 13861 13697 14042 14495 14427 14451 14495 14312 14514 14582 14577 14603 14790 14784 14718 14892 14809 14863 14864 15100 15261 15188 15280 15431 15507 15530 15328 15430 15231 15386 15604 15738 15783 15891 15760 15824 15826 15895 15842 15946 15731 15775 15815 15809 15726 15769 15539 15700 15365 15317 15392 15330 15316 15567 15657 15760 15735 15708 15802 15696 15820 15833 15891 15860 15499 15576 15319 15282 15177 15140 15289 15256 15182 15003 14857 14602 14667 14671 14604 14524 14458 14432 13945 13817 13776 13655 12626 12840 12255 13107 13141 13027 13247 13217 13229 13495 13516 12815 13037 12890 12935 12819 13255 13267 13313 13074 13270 13080 13173 13018 13157 13437 13454 13272 13170 12863 12630 12948 12803 12691 12655 13056 13131 13073 13021 12656 13031 12965 12964 13434 13403 13538 13442 13269 13699 13839 13739 13846 13920 13759 13599 13508 13278 13160 13409 13638 13569 13925 13729 13593 13663 13669 13773 13878 13707 13798 14060 14074 14006 14027 14074 13945 14054 14016 14187 14186 14125 14248 13992 13857 13852 13578 13584 13451 13499 13540 13601 13300 13432 13341 13239 12910 12824 12755 12584 12853 12999 12827 12885 12632 12585 12413 12403 12206 12446 12078 12090 12046 11771 11857 11980 11766 11982 11795 12000 11740 11384 11443 11152 11288 11642 11895 11785 11610 11935 11675 11590 11485 11684 11818 11881 11570 11448 11751 11774 11718 11800 12048 11996 11695 11607 11686 11678 11335 11380 11217 11497 11327 11420 11480 11663 11707 11694 11904 11849 11480 11140 11554 11350 11181 11137 11412 10899 10912 10661 10632 11558 11329 11177 11113 11439 11388 10946 10988 11183 11002 11419 10726 10862 10298 9903 8998 9956 10225 9707 9308 9655 9944 9795 8995 8811 8353 8010 7905 8650 8823 9116 9232 9727 9745 9134 9344 9294 8912 8647 8741 8832 8499 8531 8212 7988 7974 8623 8697 8654 8849 8911 8511 8835 8880 8836 8491 9037 9063 9152 9183 8976 9024 9168 9197 9258 9268 9099 9069 9018 9196 9486 9644 9724 9570 9470 9379 9200 9057 8693 8611 8620 8495 8277 8231 8159 8173 8375 8350 8702 8477 8450 8233 8362 8495 8440 8545 8585 8397 8356 8201 8266 8075 7843 7861 7876 7604 7540 7483 7512 7812 7621 7271 7219 7358 7026 6937 6817 7153 7205 7341 7428 7637 7645 7662 7702 7710 7952 7990 8072 8076 7928 7601 7815 7961 8335 8320 8321 8346 8405 8705 8835 8712 8875 9031 8718 8616 8834 8769 8888 8777 8656 8891 9038 9075 9137 9229 9229 9408 9317 9269 9001 8984 8979 9159 9342 9389 9225 9309 9347 9406 9511 9436 9424 9631 9665 9465 9455 9519 9396 9498 9628 9708 9714 9519 9498 9283 9384 9581 9339 9349 9618 9667 9687 9846 9788 9904 9644 9708 9569 9520 9361 9443 9345 9567 9634 9905 9998 10042 10143 10122 10153 10370 10439 10592 10664 10662 10874 10855 10901 10877 10704 10776 10948 10923 10832 10934 11047 10902 10599 10708 10696 10893 11161 11304 11428 11376 11357 11443 11365 11173 11000 11018 11223 11389 11367 11462 11341 11453 11493 11593 11747 11771 11777 11727 11817 11853 11696 11644 11891 11854 11756 11518 11327 11557 11817 11721 11814 11743 11749 11608 11871 11850 11676 11885 11790 11875 11829 11740 11623 11634 11430 11683 11415 11466 11242 11388 11549 11581 11817 11814 11801 11835 11867 11987 11959 12034 11846 11719 11941 11905 11966 11658 11777 11645 11862 11869 11905 12032 12012 11809 11541 11595 11616 11706 11736 11863 11697 11645 11831 11891 11968 12023 12035 11940 12145 12204 12223 12166 12163 12075 11966 11958 12000 11845 11871 12023 11709 11444 11373 11249 11347 11042 10829 10948 10995 11141 10888 10242 10103 10206 10275 10455 10282 10225 10294 10394 10499 10574 10677 10571 10313 10254 10126 10334 10435 10522 10665 10745 11020 11078 11003 11121 11045 11077 10958 11059 11167 11074 10991 10862 10996 10866 11091 11071 11091 10981 10871 11068 11161 11191 11076 11394 11461 11461 11504 11524 11260 11200 11306 11065 10822 10918 10939 10481 10167 10441 10492 10423 9859 9635 9353 9046 10352 10009 10090 9978 9315 9286 9628 9377 9271 9407 9288 9004 9043 9335 9426 9359 9300 9268 9276 8923 8795 8670 8869 9198 9562 9584 9742 9683 9755 9972 10072 10016 9886 9587 9535 9689 9160 9263 9178 9251 9282 9615 9987 10081 10127 10058 10260 10279 10160 9992 9930 10061 10041 10303 10388 10507 10645 10644 10660 10500 10835 10871 10843 10840 10651 10813 10719 10375 10342 10276 10258 10370 10391 10238 10094 10221 10052 9894 10004 10148 10136 10187 10545 10538 10599 10623 10479 10586 10713 10690 10765 10807 10752 10717 10589 10743 10763 10555 10502 10728 10613 10591 10487 10515 10450 10383 10651 10700 10740 10721 10701 10648 10866 10850 10868 10898 10895 10897 10892 10925 10870 10798 10700 10754 10813 10650 10762 10570 10603 10428 10292 10410 10235 10150 10227 10350 10095 10189 10325 10272 9996 9692 9743 9722 9547 9325 9267 9678 9948 10015 9890 9925 10078 10186 10122 10151 10163 10010 10010 9898 9996 10203 10184 10107 9899 9904 9982 9859 9888 9888 9801 9703 9561 9438 9582 10101 10371 10385 10280 10583 10557 10637 10829 10815 10664 10671 10829 10747 10806 10968 11010 10861 10855 10923 10965 10936 10792 10804 10775 10826 11048 11113 11068 10811 10702 10633 10648 10823 10851 10762 10644 10567 10499 10496 10569 10560 10436 10398 10416 10330 10093 10326 10328 10574 10576 10638 10756 10710 10751 10735 10732 10577 10730 10756 10679 10845 10849 10913 10878 10785 10786 10623 10559 10345 10377 10535 10584 10651 10741 10868 10879 10877 10826 10713 10627 10611 10396 10474 10532 10488 10357 10364 10306 10344 10377 10227 10083 10116 10217 10203 10261 10258 10476 10339 10261 10286 10158 10168 10083 10122 9951 9946 10133 9933 9919 10135 10038 10232 10226 9943 9813 9872 9937 10144 10360 10492 10468 10330 10205 10196 9938 9671 9603 9667 9599 9484 9348 9444 9733 10018 10059 9866 9833 9643 9657 9631 9318 9115 9038 8687 8671 8459 8429 7966 8249 8647 8709 8674 8728 8318 8142 8294 8280 8369 8299 8186 8395 8445 8719 8761 8464 8067 7936 8157 8278 7910 7641 7834 8046 8338 8388 8223 8362 8210 7831 7997 8202 8532 8480 8593 8547 8354 8225 8477 8705 8798 8892 8846 9027 8944 8976 8864 8811 8850 8608 8853 8957 8880 8833 9271 9224 8955 8580 8575 8713 8596 8476 8519 8341 8311 8556 8372 8238 8304 8271 8310 8021 7905 7739 7722 7764 8120 8128 8450 8421 8559 8706 8713 8644 8461 8650 8381 8328 8182 8250 8203 8253 8454 8378 8463 8543 8530 8358 8488 8566 8724 8732 8582 8330 8289 8279 8473 8427 8427 8451 8450 8535 8421 8604 8562 8620 8591 8555 8714 8657 8517 8509 8697 8772 8861 8835 8847 8849 8902 8797 8788 8772 8742 8558 8657 8818 8767 8657 8528 8528 8537 8527 8466 8548 8563 8454 8167 8162 8307 8283 8180 8377 8391 8427 8486 8592 8568 8491 8354 8282 8225 8140 7981 7911 8008 8043 7825 7661 7661 7434 7577 7520 7251 7209 7373 7079 6908 7041 6847 7000 7119 7027 7146 7011 6832 6852 6876 7063 7007 6813 7046 6996 6809 6701 6612 6550 8330 8289 8279 8473 8427 8427 8451 8450 8535 8421 8604 8562 8620 8591 8555 8714 8657 8517 8509 8697 8772 8861 8835 8847 8849 8902 8797 8788 8772 8742 8558 8657 14892 14805 14869 14990 14907 15058 14975 14824 14766 14942 15024 15110 15154 15059 15207 14930 15057 14913 14938 14540 14588 14508 14802 14596 8592 8568 8491 8354 8282 8225 8140 7981 7911 8008 8043 7825 7661 7661 7434 7577 7520 7251 7209 7373 7079 6908 7041 6847 7000 7119 7027 7146 7011 6832 6852 6876 7063 7007 6813 7046 6996 6809 6701 6612 6550 8330 8289 8279 8473 8427 8427 8451 8450 8535 8421 8604
On May 23, 2012, at 6:11 PM, Trying To learn again wrote:> Hi all > > Sorry in advance > I have this txt with data and I want to plot the data with a line > between > dots. > > The thing is that if I run this > > g<-read.table("ip.txt") > plot(g,type="l")Try: plot(g$V1,type="l")> > > I have prove to attach(g) but doesn? t work. > > I know is a begginer question and sure is of the type of data or the > file > but I can?t find where is the solution. It appears: > > Error in plot.default(xlim, ylim, type = "n", ann = FALSE, axes = > FALSE, : > "type" in associated with multiple argumetns specified > > Can anyone give me a clue...I will send a Parma ham ???Many thaks???-- David Winsemius, MD West Hartford, CT
Dear Trying: after g <- read.table("ip.txt") enter str(g) You will see that g is a dataframe with one variable, called V1. V1 contains the data you want to plot. So type plot(g$V1, type="l") or with(g, plot(V1, type="l")) or, if you prefer to attach g: attach(g) plot(V1, type="l") --Chris Ryan SUNY Upstate Medical University Binghamton, NY Trying To learn again wrote:> Hi all > > Sorry in advance > I have this txt with data and I want to plot the data with a line between > dots. > > The thing is that if I run this > > g<-read.table("ip.txt") > plot(g,type="l") > > > I have prove to attach(g) but doesn? t work. > > I know is a begginer question and sure is of the type of data or the file > but I can?t find where is the solution. It appears: > > Error in plot.default(xlim, ylim, type = "n", ann = FALSE, axes = FALSE, : > "type" in associated with multiple argumetns specified > > Can anyone give me a clue...I will send a Parma ham ???Many thaks??? > > I promise not to ask again but I would said I was sure that that sentences > worked. > > > > ______________________________________________ > 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.