qqplotout: qqplotout plots up a single qqplot for a lm model

Description Usage Arguments Value Examples

View source: R/cpueplots.R

Description

qqplotout generates a single qqplot in isolation from the plot of a model's diagnostics. It is used with lefthist to illustrate how well a model matches a normal distribution

Usage

1
2
3
4
5
6
7
8
qqplotout(
  inmodel,
  title = "Normal Q-Q Plot",
  cex = 0.9,
  ylow = -5,
  yhigh = 5,
  plotrug = FALSE
)

Arguments

inmodel

the optimum model from standLM or dosingle

title

a title for the plot, defaults to 'Normal Q-Q Plot'

cex

the size of the font used, defaults to 0.9

ylow

the lower limit of the residuals

yhigh

he upper limit of the residuals

plotrug

a logical value determinning whether a rug is included

Value

currently nothing, but it does generate a qqplot to the current device

Examples

1
2
3
4
5
6
y <- rep(1:100,2)
x <- rnorm(200,mean=10,sd=1)
model <- lm(y ~ x)
dev.new(width=6,height=3.5,noRStudioGD = TRUE)
par(mai=c(0.45,0.45,0.15,0.05),font.axis=7)
qqplotout(model,ylow=-50,yhigh=50)

haddonm/r4cpue documentation built on May 11, 2020, 1:31 a.m.