Ok, so I have my data in a scatter graph:
(colour is set by genotype, I don't think this is the best way to do it yet but I want to treat the data as one set at the moment)
I'm then creating regression models:
m1 = fitlm(tbl,'Mass~Length');
m2 = fitlm(tbl,'Mass~Length+Genotype');
m3 = fitlm(tbl,'Mass~Genotype+Length+Genotype*Length');
Now for the problem, how do I get these linear models to display onto the scatter graph ontop of the data?
What I'm trying to achieve is something like:
Eventually I will also want to display the r values and legend.