Creates a graph to see comparisons based on group estimates and variancecovariance matrix
1 2 3 4 5 
compstable 
A data frame object of form like that created by the 
difftype 
Must be specified as one of the following:

analysisname 
Optional, a character text or
mathvalid expression that will used in the graph title. The default
value is the empty 
endptname 
Optional, a character text or mathvalid expression
that that will be used as the xaxis label of the graph.
The default
value is the empty 
alpha 
Significance level, by default set to 
digits 
Optional, For output display purposes in the
graph,
values will be rounded to this numeric
value. Only the integers of 0, 1, 2, 3, and 4 are accepted. No
rounding is done during any calculations. The default value is

explanation 
If 
titlestamp 
Specify text to the graph in the top of graph area,
otherwise a default description of "Comparisons Graph" and

wraplength 
On the left hand axis are each A vs. B comparison label
from the 
cex.comps 
Similar to 
ticklabels 
Optional, before graphing the data, remove any automatically generated tickmarks for the xaxis, and use these tickmarks instead. A vector of tickmarks to be placed on the xaxis. Any numeric representations will be coerced to character. 
... 
Additional arguments. None are currently used. 
The minimum and maximum values across all the bar ends
are added inside the plot region in
blue, flush against the xaxis. In two panel cases, there is a
tendency to fall outside the panel area even though right justified is
used for the adj
parameter of functions like panel.text
.
comparisonsgraph
returns
an invisible NULL
. The main purpose is the side
effect of graphing to the current device.
This function was created for internal use in the cg package as
its use can be seen in the comparisonsGraph
methods
source code. Therefore any direct use of it needs to be done cautiously.
Contact cg@billpikounis.net for bug reports, questions, concerns, and comments.
Bill Pikounis [aut, cre, cph], John Oleynick [aut], Eva Ye [ctb]
comparisons
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31  data(canine)
canine.data < prepareCGOneFactorData(canine, format="groupcolumns",
analysisname="Canine",
endptname="Prostate Volume",
endptunits=expression(plain(cm)^3),
digits=1, logscale=TRUE, refgrp="CC")
canine.fit < fit(canine.data)
canine.comps < comparisonsTable(canine.fit)
## Easier way: notice the camelcase of the comparisonsGraph call
comparisonsGraph(canine.comps, model="olsonly")
## Manual way
## Instead of comparisonsGraph(canine.comps, model="olsonly")
canine.compstable < comparisons(estimates=canine.fit@olsfit$coef,
varcovmatrix=vcov(canine.fit@olsfit),
errordf=canine.fit@olsfit$df.residual,
endptscale="log",
analysisname="Canine",
digits=1,
endptname="Prostate Volume")
comparisonsgraph(canine.compstable,
difftype="percent",
analysisname="Canine",
digits=1,
endptname=expression(paste( plain('Prostate Volume'),
' (', plain(cm)^3 , ')' ))
)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.