Description Usage Arguments Value Methods (by class) Examples
The method draws the box-and-whisker plot given the accession of either a numeric variable alone or a numeric plus a categorical variable. The boxplot is drawn with the numeric variable as the function of each category of the categorical variable, respectively. When categorical variable accession is not provided, the boxplot is drawn with the numeric variable as the function of the respective subject indices. The resulting graph is saved as PDF and PNG files.
1 2 3 4 5 | variableBoxplot(object, numPhvAcc, ...)
## S4 method for signature 'Study,character'
variableBoxplot(object, numPhvAcc, ...,
catPhvAcc = "", saveToDir = "", showPlot = T)
|
object |
Study class object. |
numPhvAcc |
a character string. The dbGaP accession of a numeric variable. |
... |
There are optional arguments. |
catPhvAcc |
a character string. (optional) The dbGaP accession of a categorical variable. |
saveToDir |
a character string. (optional) The path to the directory where the plot PDF file is saved. If not provided, the file is saved in the 'temp' directory under the user project directory. |
showPlot |
a logical value. (optional) If TRUE (default), shows the created graph; Not show if FALSE. The graph is always saved in PDF and PNG files regardless shown or not. |
a data frame. The data used for plotting.
object = Study,numPhvAcc = character
: of class Study
1 2 3 4 5 6 | ## Not run:
s <- Study(phsAcc = 'phs000001.v3.p1')
variableBoxplot(s, numPhvAcc = 'phv00000027.v2', catPhvAcc = 'phv00000032.v2')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.