Hello @VT89,
You're welcome. You can try this code. Basically I've used the ODS statement to output the AncovaPlot dataset. And then I've used Proc SGPLOT to plot the graph. I believe you are after the Ancova graph? You can now change the XAXIS label and also the graph title more easily.
The legend is a little different from before, i.e. there's only the line, instead of the line and marker, but I think that's okay?
ods output ANCOVAPlot = ANCOVAPlot;
PROC GLM Data= work.BN plots=(diagnostics);
CLASS Treatment ;
Model NDFPW = Time |Treatment/solution;
Lsmeans Treatment /cl pdiff adjust=Tukey lines Stderr;
run;
quit;
proc sgplot data = ANCOVAPlot;
scatter x = _X7 y = _YVAR / group = _GROUP_OBS;
series x = _XCONT1 y = _Predicted_FIT / group = _GROUP_FIT name="series_leg" legendlabel = "Treatment";
keylegend "series_leg" / exclude=("");
yaxis label = "NDF(dm), (%)";
xaxis label = "X axis";
run;
Thanks,
Kriss
... View more