[R] Label multiple-line plot

John Wasige johnwasige at gmail.com
Tue Jul 19 21:36:46 CEST 2016


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 <538280 at 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 <johnwasige at 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 at 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.
> 538280 at gmail.com
>



-- 
John Wasige
"There are no REGRATES in LIFE, just lessons (Jennifer Aniston)”

	[[alternative HTML version deleted]]



More information about the R-help mailing list