book_3_12.m

Use rdplot

load ganglion

% Compute first degree fit.
p = polyfit(Area,CPratio,1);
y = polyval(p,Area);

% Compute residuals.
residual = CPratio(:)-y(:);

alpha = 1;
lambda = 1;

rdplot(Area,residual,alpha,lambda)
xlabel('Area (mm^2)')
ylabel('Residual CP Ratio')
title('Ganglion')