Thanks! It worked for me. matplot(for_jhon$ID, for_jhon[,2:73], type='l')
Any I dea on how I can label multiple-line plot based on column names? Thanks for your help John On Tue, Jul 19, 2016 at 8:46 PM, Greg Snow <538...@gmail.com> wrote: > Most attachments get stripped off, so your data did not make it through. > > But try: > > > matplot(for_jhon$ID, for_jhon[,2:73], type='l') > > > On Tue, Jul 19, 2016 at 12:24 PM, John Wasige <johnwas...@gmail.com> > wrote: > > Dear all, > > > > This is to kindly request for your help. I would like to plot my data. > > > > The R script below gives some plot that is not clear. How can I get a > clear > > multiple-line plot. The data is attached herewith. > > > > ##R Script > > for_jhon = read.csv("C:/LVM_share/for_ jhon.csv", header=TRUE, sep=";") > > matplot(for_jhon$ID, cbind(for_jhon[,2:73])) > > > > Thanks for your help > > > > John > > ______________________________________________ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > 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. > > > > -- > Gregory (Greg) L. Snow Ph.D. > 538...@gmail.com > -- John Wasige "There are no REGRATES in LIFE, just lessons (Jennifer Aniston)” [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.