Displaying 1 result from an estimated 1 matches for "m1tc".
Did you mean:
m1t
2005 Nov 03
1
Problems with abline adding regression line to a graph
...uot;Grain crude protein (CP)")
+ })
This part works well and produces the datapoints as red circles.
When I try to add a line, using a fitted linear model in a way
that works perfect with other variables in the same dateset the
following happens:
> with(njfA_bcd, {
+ abline(lm(predict(m1tc) ~ TC_OS.G31), lty = 1, col = "red")
+ })
Error in model.frame(formula, rownames, variables, varnames, extras,
extranames, :
variable lengths differ
And this means?
There exists missing values for TC_OS.G31 in the dataset. From the
beginning
m1tc was a lm() object, which gave...