Re: [R] Display Equation on plot

2009-03-24 Thread Matthieu Dubois
Douglas M. Hultstrand metstat.com> writes: > > Hello, > > I am using the lm to fit a linear model to data, I was wondering if > there is a way to display the equation on a plot using the extracted lm > coefficients? I am using the plot() function to create the plot/.png. > > Example: > lm_m

Re: [R] Display Equation on plot

2009-03-24 Thread Duncan Murdoch
On 3/24/2009 12:50 PM, Douglas M. Hultstrand wrote: Hello, I am using the lm to fit a linear model to data, I was wondering if there is a way to display the equation on a plot using the extracted lm coefficients? I am using the plot() function to create the plot/.png. Example: lm_mod <- lm(

Re: [R] Display Equation on plot

2009-03-24 Thread Uwe Ligges
Douglas M. Hultstrand wrote: Hello, I am using the lm to fit a linear model to data, I was wondering if there is a way to display the equation on a plot using the extracted lm coefficients? I am using the plot() function to create the plot/.png. Example: lm_mod <- lm(data1~data2) interce

[R] Display Equation on plot

2009-03-24 Thread Douglas M. Hultstrand
Hello, I am using the lm to fit a linear model to data, I was wondering if there is a way to display the equation on a plot using the extracted lm coefficients? I am using the plot() function to create the plot/.png. Example: lm_mod <- lm(data1~data2) intercept = 48.54 slope = 0.4856 I wan