qqGraph.cgPairedDifferenceFit {cg} | R Documentation |
Quantile-Quantile (QQ) Graphs of a cgPairedDifferenceFit object
Description
Create a Q-Q Gaussian graph of the residuals of a cgPairedDifferenceFit object
Usage
## S4 method for signature 'cgPairedDifferenceFit'
qqGraph(fit, line=TRUE, cgtheme = TRUE, device = "single", ...)
Arguments
fit |
A fit object of class |
line |
Add a line through the estimated 25th and 75th percentiles,
when set to the default |
cgtheme |
When set to the default |
device |
Can be one of three values:
|
... |
Additional arguments. One is currently valid:
|
Details
The heading for the graph is taken from the cgPairedDifferenceData
object,
which
prepareCGPairedDifferenceData
sets from its analysisname
argument.
The label for the Y-axis is taken from the cgPairedDifferenceData
object,
which
prepareCGPairedDifferenceData
sets from its endptname
argument.
The number of decimal places printed in the ticks on the Y-axis is taken
from the cgPairedDifferenceData
object,
which prepareCGPairedDifferenceData
sets from its digits
argument.
The minimum and maximum values from the range of the residuals are respectively labeled in the bottom and top left corners of the graph region.
Value
qqGraph.cgPairedDifferenceFit
returns
an invisible NULL
. The main purpose is the side
effect of graphing to the current device.
Note
Contact cg@billpikounis.net for bug reports, questions, concerns, and comments.
Author(s)
Bill Pikounis [aut, cre, cph], John Oleynick [aut], Eva Ye [ctb]
See Also
Examples
data(anorexiaFT)
anorexiaFT.data <- prepareCGPairedDifferenceData(anorexiaFT, format="groupcolumns",
analysisname="Anorexia FT",
endptname="Weight",
endptunits="lbs",
expunitname="Patient",
digits=1,
logscale=TRUE)
anorexiaFT.fit <- fit(anorexiaFT.data)
qqGraph(anorexiaFT.fit)
qqGraph(anorexiaFT.fit, model="olsonly")