Re: [R] Fitting a line on trellis plot

2015-03-26 Thread Frederic Ntirenganya
Thanks for the help. Frederic Ntirenganya Maseno University, African Maths Initiative, Kenya. Mobile:(+254)718492836 Email: fr...@aims.ac.za https://sites.google.com/a/aims.ac.za/fredo/ On Wed, Mar 25, 2015 at 4:48 PM, S Ellison s.elli...@lgcgroup.com wrote: Call: lm(formula =

[R] Fitting a line on trellis plot

2015-03-25 Thread Frederic Ntirenganya
Hi all, I am doing analysis which involves fitting a line on trellis plot. The factor is month. As you know a year has 12 months and I expect to get 12 lines one for each month. I am getting the following results which is different to my expectation. Am I have to do anything about the data? Any

Re: [R] Fitting a line on trellis plot

2015-03-25 Thread Michael Dewey
On 25/03/2015 12:30, Frederic Ntirenganya wrote: Hi all, I am doing analysis which involves fitting a line on trellis plot. But the commands below (or at least the output from them) are not plotting commands. The factor is month. As you know a year has 12 months and I expect to get 12

Re: [R] Fitting a line on trellis plot

2015-03-25 Thread S Ellison
Call: lm(formula = curr_data[[tmin_col]] ~ curr_data[[year_col]] - 1 | curr_data[[month_col]]) First, this is not a sensible formula for lm; lm() does not use '|' to denote grouping. It would be a valid formula for xyplot, in which | specifies grouping variables. In lm(), '|' is