Create a graph of profile pairs in a
Additional arguments, both optional. Two are currently valid:
The individual paired differences are displayed in 3 ways side by side.
Each difference is determined by subtracting the
refgrp value from
the other group's value, for each experimental unit
data object of class
In the middle section, the individual paired difference points
jittered, and open circles
are used to alleviate potential overlap and the danger of representing
multiple points as a single point.
In the right hand section, a boxplot is added, similar to to that produced by
but with the median shown as a "+" and the mean shown as a "o". A
warning on the lack of usefulness of a boxplot is added to the graph if there are
have 5 or fewer paired differences.
Tick marks are attempted to be chosen wisely. For log-scaled axes in
particular, leading digits of 2, 5, and 10 for values are included if
possible. Since the algorithm is empirical, the
argument is available for further refinement or complete replacement
The heading for the graph includes a creation of a character
string: The "other" group versus the
B vs. A.
Also included in the heading is the
setting from the
The label for the y-axis also includes the
B vs. A
character description of the comparison. If
precent differences represent the tickmarks on the log-spaced scale,
since the differences in the log scale correspond to ratios in the
original scale, e.g.
B / A. Also included in the y-axis label
is a character string derived from the
endptunits settings in the
object. Percent differences make up the left-hand y-axis, and the
corresponding Ratios make the right-hand left axis.
Minimum and maximum values from the range of the differences are
respectively labeled in the bottom and top left corners of the graph
region. Percentages are displayed when
NULL. The main purpose is the side
effect of graphing to the current device.
Contact email@example.com for bug reports, questions, concerns, and comments.
Bill Pikounis [aut, cre, cph], John Oleynick [aut], Eva Ye [ctb]
1 2 3 4 5 6 7 8 9 10 11
data(anorexia.FT) anorexiaFT.data <- prepareCGPairedDifferenceData(anorexiaFT, format="groupcolumns", analysisname="Anorexia FT", endptname="Weight", endptunits="lbs", expunitname="Patient", digits=1, logscale=TRUE) diffGraph(anorexiaFT.data) ## Graph the data on the original scale instead of the log scale. diffGraph(anorexiaFT.data, logscale=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.