[R] Plotting multiple curves on a plot
Rolf Turner
r.turner at auckland.ac.nz
Sun Aug 24 23:18:13 CEST 2008
On 25/08/2008, at 4:49 AM, ascentnet wrote:
>
> Greetings!
>
> I was wondering how to plot multiple equation on the same plot with
> the
> data?
>
> So if I have three equations:
>
> 1.y= 2.31X + -2.2
> 2.y= 2.27X^2 + 5.63X + 0.52
> 3.y= -1.53X^3 + 1.92X^2 + -4.72X + 4.57
>
> and a datafram or a 2D matrix. I would also like the equations in
> different
> colors, but that is extra!
?curve
Note particularly the argument ``add''.
Note that ``col'' may be given as one of the ... arguments.
How (on earth) do data frames or matrices come into it?
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
More information about the R-help
mailing list