Re: [R] Label multiple-line plot

2016-07-19 Thread John Wasige
Thanks so much Best Rgds John On Tue, Jul 19, 2016 at 9:56 PM, Greg Snow <538...@gmail.com> wrote: > with 72 lines to label it will be crowded whatever you do. > > Here is one option (though I am showing with fewer lines): > > x <- sapply(1:15, function(i) cumsum(rnorm(100))) > par(mar=c(5,4,4,3)

Re: [R] Label multiple-line plot

2016-07-19 Thread Greg Snow
with 72 lines to label it will be crowded whatever you do. Here is one option (though I am showing with fewer lines): x <- sapply(1:15, function(i) cumsum(rnorm(100))) par(mar=c(5,4,4,3)+0.1) matplot(1:100, x, type='l', lty=1) mtext(LETTERS[1:15], side=4, at=x[100,], las=1, line=1) One way to sp

[R] Label multiple-line plot

2016-07-19 Thread John Wasige
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 di