Re: [R] Newbie: Drawing fitted lines on subset of data

2023-05-16 Thread Kevin Zembower via R-help
Yep, that did it. I didn't know that you could have pipelines within pipelines. Thanks, again, for all your help. -Kevin On 5/16/23 11:44, Rui Barradas wrote: > Às 15:29 de 16/05/2023, Kevin Zembower via R-help escreveu: >> Hello, >> >> I's still working with my tsibble of weight data for the l

Re: [R] Newbie: Drawing fitted lines on subset of data

2023-05-16 Thread Rui Barradas
Às 15:29 de 16/05/2023, Kevin Zembower via R-help escreveu: Hello, I's still working with my tsibble of weight data for the last 20 years. In addition to drawing an overall trend line, using lm, for the whole data set, I'd like to draw short lines that would recompute lm and draw it, say, just f

[R] Newbie: Drawing fitted lines on subset of data

2023-05-16 Thread Kevin Zembower via R-help
Hello, I's still working with my tsibble of weight data for the last 20 years. In addition to drawing an overall trend line, using lm, for the whole data set, I'd like to draw short lines that would recompute lm and draw it, say, just for the years from 2010:2015. Here's a short example that I