profileGraph.cgPairedDifferenceData {cg} | R Documentation |
Graph Profiles of Experimental Unit Pairs in a cgPairedDifferenceData object
Description
Create a profile graph of the data in a cgPairedDifferenceData
object.
Usage
## S4 method for signature 'cgPairedDifferenceData'
profileGraph(data, ...)
Arguments
data |
A |
... |
Additional arguments, both optional. Two are currently valid:
|
Details
The profile graph for paired difference data is the simplest of profiles as each experimental unit has exactly two points connected by a straight line. Labels for the experimental units are added for identification.
Individual points are jitter
ed, and open circles
are used to alleviate potential overlap and the danger of representing
multiple points as a single point.
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 ticklabels
argument is available for further refinement or complete replacement
of tickmarks.
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
and endptunits
arguments.
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.
Minimum and maximum values from ranges of data are respectively labeled in the bottom and top left corners of graph regions.
Value
profileGraph.cgPairedDifferenceData
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]
Examples
data(anorexia.FT)
anorexiaFT.data <- prepareCGPairedDifferenceData(anorexiaFT, format="groupcolumns",
analysisname="Anorexia FT",
endptname="Weight",
endptunits="lbs",
expunitname="Patient",
digits=1, logscale=TRUE)
profileGraph(anorexiaFT.data)
# Graph the data on the original scale instead of the log scale.
profileGraph(anorexiaFT.data, logscale=FALSE)