Hi Ashta,
See the "..." in ?abline.
HTH,
Jorge
On Thu, Oct 1, 2009 at 9:57 AM, Ashta <> wrote:
> I am trying to plot a line graph for 3 or more regression lines
>
> abline(m1)
> abline(m2)
> abline(m3)
>
> Can I change the color of each line? if so how?
>
> Thanks in advance
> Ashta
>
>
On Thu, Oct 1, 2009 at 6:57 AM, Ashta wrote:
> I am trying to plot a line graph for 3 or more regression lines
>
> abline(m1)
> abline(m2)
> abline(m3)
>
> Can I change the color of each line? if so how?
>
> Thanks in advance
> Ashta
>
Try passing the 'col' parameter to abline:
abline( m1, col
abline(m1, col="red")
regards,
Stefan
On Thu, Oct 01, 2009 at 09:57:11AM -0400, Ashta wrote:
> I am trying to plot a line graph for 3 or more regression lines
>
> abline(m1)
> abline(m2)
> abline(m3)
>
> Can I change the color of each line? if so how?
>
> Thanks in advance
> Ashta
>
>
Try this:
abline(m1, col = 'blue')
abline(m1, col = 'red')
abline(m1, col = 'green')
On Thu, Oct 1, 2009 at 10:57 AM, Ashta wrote:
> I am trying to plot a line graph for 3 or more regression lines
>
> abline(m1)
> abline(m2)
> abline(m3)
>
> Can I change the color of each line? if so how?
>
> Th
I am trying to plot a line graph for 3 or more regression lines
abline(m1)
abline(m2)
abline(m3)
Can I change the color of each line? if so how?
Thanks in advance
Ashta
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
5 matches
Mail list logo