Plot.Regr {MVar} | R Documentation |
Graphs of the linear regression results.
Plot.Regr(Reg, typegraf = "Scatterplot", title = NA, xlabel = NA, ylabel = NA, namevary = NA, namevarx = NA, size = 1.1, grid = TRUE, color = TRUE, intconf = TRUE, intprev = TRUE, casc = TRUE)
Reg |
Regression function data. |
typegraf |
Type of graphic: |
title |
Titles of the graphics, if not set, assumes the default text. |
xlabel |
Names the X axis, if not set, assumes the default text. |
ylabel |
Names the Y axis, if not set, assumes the default text. |
namevary |
Variable name Y, if not set, assumes the default text. |
namevarx |
Name of the variable X, or variables X, if not set, assumes the default text. |
size |
Size of the points in the graphs. |
grid |
Put grid on graphs (default = TRUE). |
color |
Colored graphics (default = TRUE). |
intconf |
Case typegraf = "Regression". Graphics with confidence interval (default = TRUE). |
intprev |
Case typegraf = "Regression". Graphics with predictive interval (default = TRUE). |
casc |
Cascade effect in the presentation of the graphics (default = TRUE). |
Returns several graphs.
Paulo Cesar Ossani
data(DataMix) Y <- DataMix[,2] X <- DataMix[,7] NomeY <- "Medium grade" NomeX <- "Commercial coffees" Res <- Regr(Y, X, namevarx = NomeX , intercepts = TRUE, sigf = 0.05) Tit <- c("Scatterplot") Plot.Regr(Res, typegraf = "Scatterplot", title = Tit, namevary = NomeY, namevarx = NomeX, color = TRUE) Tit <- c("Scatterplot with the adjusted line") Plot.Regr(Res, typegraf = "Regression", title = Tit, xlabel = NomeX, ylabel = NomeY, color = TRUE, intconf = TRUE, intprev = TRUE) dev.new() # necessary to not overlap the following graphs to the previous graph par(mfrow = c(2,2)) Plot.Regr(Res, typegraf = "QQPlot", casc = FALSE) Plot.Regr(Res, typegraf = "Histogram", casc = FALSE) Plot.Regr(Res, typegraf = "Fits", casc = FALSE) Plot.Regr(Res, typegraf = "Order", casc = FALSE)