Description Usage Arguments Details Value Note Author(s) See Also Examples
Creates a graph to see estimated sample sizes in a cgOneFactorSampleSizeTable object.
1 2 | ## S4 method for signature 'cgOneFactorSampleSizeTable'
samplesizeGraph(sstable, Nscale="log", mmdscale = "log", ...)
|
sstable |
A sample size object of class |
Nscale |
A |
mmdscale |
A |
... |
Additional arguments:
|
The minimum and maximum sample size values are added inside the plot region in blue, flush against the y-axis in the top and bottom left corners.
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 method essentially portrays in a graph the same information shown by the
print method of the
cgOneFactorSampleSizeTable
object.
samplesizeGraph.cgOneFactorSampleSizeTable
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 | 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.samplesize <- samplesizeTable(canine.fit, direction="increasing",
mmdvec=c(10, 25, 50, 75, 100)) ## print method shows table
samplesizeGraph(canine.samplesize)
samplesizeGraph(canine.samplesize, model="olsonly",
mmdticklabels=list(mod="add", marks=100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.