[R] Indexing within by statement - different coloured lines in abline wanted..

2013-05-27 Thread Tom Wilding
Dear R-list I'm trying to get each regression line, plotted using abline, to be of a different colour as the following code illustrates. I'm hoping there is a simple indexing solution. Many thanks. ## code from here colours=c(black,red,blue,green,pink)

Re: [R] Indexing within by statement - different coloured lines in abline wanted..

2013-05-27 Thread John Kane
- From: tom.wild...@sams.ac.uk Sent: Mon, 27 May 2013 10:39:58 + To: r-help@r-project.org Subject: [R] Indexing within by statement - different coloured lines in abline wanted.. Dear R-list I'm trying to get each regression line, plotted using abline, to be of a different colour

Re: [R] Indexing within by statement - different coloured lines in abline wanted..

2013-05-27 Thread Blaser Nello
by statement - different coloured lines in abline wanted.. Dear R-list I'm trying to get each regression line, plotted using abline, to be of a different colour as the following code illustrates. I'm hoping there is a simple indexing solution. Many thanks. ## code from here colours=c(black,red,blue