Creates a graph to see estimated sample sizes in a cgOneFactorSampleSizeTable object.
A sample size object of class
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
argument is available for further refinement or complete replacement
The method essentially portrays in a graph the same information shown by the
print method of the
NULL. The main purpose is the side
effect of graphing to the current device.
Contact [email protected] 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.