Description Usage Arguments Details Value Note Author(s) Examples
Create a point graph (a.k.a. dot plot, strip plot, onedimensional
scatter plot) of the data in a cgOneFactorData
object.
1 2  ## S4 method for signature 'cgOneFactorData'
pointGraph(data, ...)

data 
A 
... 
Additional arguments, both optional. Two are currently valid:

If logscale=TRUE
, the tick marks for the yaxis
on the left side of the plot show original values, while the
tick marks for the yaxis on the right side of the graph
show base 10 log values.
Tick marks are attempted to be chosen wisely. For logscaled 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.
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.
The point graph is a vertical dot plot or strip plot, with separate areas for each group in the data set, and light gray lines between the groups. For censored data, leftcensored values are shown as a shallow "V", which is actually just a rotated downward "<" sign. Similarly, rightcensored values are shown as a deeper "^", which is a rotated upward ">" sign.
The heading for the graph is taken from the cgOneFactorData
object,
which prepareCGOneFactorData
sets from its analysisname
argument.
The label for the yaxis is taken from the cgOneFactorData
object,
which prepareCGOneFactorData
sets from its endptname
and endptunits
arguments.
The number of decimal places printed in the ticks on the yaxis is taken
from the cgOneFactorData
object,
which prepareCGOneFactorData
sets from its digits
argument.
The minimum and maximum values from the range of the data are respectively labeled in the bottom and top left corners of the graph region.
If group labels along the xaxis seem to overlap in the standard horizontal form, they will be rotated 45 degrees.
pointGraph.cgOneFactorData
returns
an invisible NULL
. The main purpose is the side
effect of graphing to the current device.
Contact cg@billpikounis.net 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 12 13 14 15 16 17 18 19  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)
pointGraph(canine.data)
# Graph the data on the original scale instead of the log scale.
pointGraph(canine.data, logscale=FALSE)
## Censored Data
data(gmcsfcens)
gmcsfcens.data < prepareCGOneFactorData(gmcsfcens, format="groupcolumns",
analysisname="cytokine",
endptname="GMCSF (pg/ml)",
logscale=TRUE)
pointGraph(gmcsfcens.data)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.