Plot.Regr {MVar}R Documentation

Graphs of the linear regression results.

Description

Graphs of the linear regression results.

Usage

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,
          savptc = FALSE, width = 3236, height = 2000, res = 300, 
          casc = TRUE)

Arguments

Reg

Regression function data.

typegraf

Type of graphic:
"Scatterplot" - Scatterplot 2 to 2,
"Regression" - Graph of the linear regression,
"QQPlot" - Graph of the normal probability of the residues,
"Histogram" - Histogram of the residues,
"Fits" - Graph of the adjusted values versus residuals,
"Order" - Graph of the order of the observations versus the residuals.

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).

savptc

Saves graphics images to files (default = FALSE).

width

Graphics images width when savptc = TRUE (defaul = 3236).

height

Graphics images height when savptc = TRUE (default = 2000).

res

Nominal resolution in ppi of the graphics images when savptc = TRUE (default = 300).

casc

Cascade effect in the presentation of the graphics (default = TRUE).

Value

Returns several graphs.

Author(s)

Paulo Cesar Ossani

See Also

Regr

Examples

data(DataMix)

Y <- DataMix[,2]

X <- DataMix[,7]

name.y <- "Medium grade"

name.x <- "Commercial coffees"

res <- Regr(Y, X, namevarx = name.x , intercept = TRUE, sigf = 0.05)

tit <- c("Scatterplot")
Plot.Regr(res, typegraf = "Scatterplot", title = tit,
          namevary = name.y, namevarx = name.x, color = TRUE, 
          savptc = FALSE, width = 3236, height = 2000, res = 300)

tit <- c("Scatterplot with the adjusted line")
Plot.Regr(res, typegraf = "Regression", title = tit, 
          xlabel = name.x, ylabel = name.y, color = TRUE,
          intconf = TRUE, intprev = TRUE, savptc = FALSE, 
          width = 3236, height = 2000, res = 300)

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)

[Package MVar version 2.2.2 Index]