Graph Individual Data Points of Groups
Generic function to create point graphs (a.k.a. dot plot, strip plot, one-dimensional scatter plot) of a data object created by the cg package.
A data object created with a
Additional arguments, depending on the specific method written for
the object. Currently, there is only one such specific method; see
Individual points are
jittered, 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, left-censored values are shown as a shallow "V", which is actually just a rotated downward "<" sign. Similarly, right-censored values are shown as a deeper "^", which is a rotated upward ">" sign.
Minimum and maximum values from ranges of data are respectively labeled in the bottom and top left corners of graph regions.
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 main purpose is the side effect of graphing to the current device. See the specific methods for discussion of any return values.
Contact firstname.lastname@example.org 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
data(canine) canine.data <- prepareCGOneFactorData(canine, format="groupcolumns", analysisname="Canine", endptname="Prostate Volume", endptunits=expression(plain(cm)^3), digits=1, logscale=TRUE, refgrp="CC") 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="GM-CSF (pg/ml)", logscale=TRUE) pointGraph(gmcsfcens.data)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.