Re: [R] multiple-line plot

2016-07-20 Thread Adams, Jean
Use the dput() function to share a subset of your data with the list (attachments are not supported). For example, submit this command dput(for_jhon[1:20, ]) and post the result to the list along with your question. Jean On Tue, Jul 19, 2016 at 1:24 PM, John Wasige wrote: > ​Dear all, > >

Re: [R] multiple-line plot

2016-07-19 Thread Greg Snow
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 wrote: > Dear all, > > This is to kindly request for your help. I would like to plot my data. > > The R script below g

Re: [R] Multiple line-plot

2012-02-16 Thread John Kane
What are you expecting to get? At the moment it appears that you are just ploting one data vector. table() is giving you a one row table. BTW you probably should not use data as a data.frame name. It is a reserved word. John Kane Kingston ON Canada > -Original Message- > From: stude

Re: [R] Multiple line-plot

2012-02-16 Thread Dallas
I think this is what you are getting at. Hope this helps. #index data to determine what low and high levels of tvHrs are (I said anything over 15 hours is considered 'high') index=which(tvHrs > 15) #Plot the first plot, which is the 'high', only using values from crimeDvp that are in 'index' (c