Regression - Diagnostic - StandardRPlot - Normal Q-Q

From Q
Jump to navigation Jump to search


VizIcon Normal Q-Q.svg

Create a normal Quantile-Quantile (QQ) plot to reveal departures of the residuals from normality

Code

var heading_text = "Normal Q-Q";
if (!!form.setObjectInspectorTitle)
    form.setObjectInspectorTitle(heading_text);
else 
    form.setHeading(heading_text);

form.dropBox({name: "formInput", label: "Regression:", types: ["RItem:Regression"],
              prompt: "Select a Regression output to show diagnostics for" });
normal.qq <- plot(formInput, which = 2)
ret <- ""
class(ret) <- "visualization-selector"
ret