variablePiechart: Categorical variable subject count pie-chart

Description Usage Arguments Value Methods (by class) Examples

Description

The method draws the pie-chart of subject counts among categories of a categorical variable. The resulting graph is saved as PDF and PNG files.

Usage

1
2
3
4
5
variablePiechart(object, catPhvAcc, ...)

## S4 method for signature 'Study,character'
variablePiechart(object, catPhvAcc = "", ...,
  saveToDir = "", showPlot = T)

Arguments

object

Study class object.

catPhvAcc

a character string. The dbGaP accession of a categorical variable.

...

There are optional arguments.

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.

Value

a data frame. The data used for plotting.

Methods (by class)

Examples

1
2
3
4
5
6
## Not run: 

s <- Study(phsAcc = 'phs000001.v3.p1')
variablePiechart(s, catPhvAcc = 'phv00053764.v2')

## End(Not run)

jameslhao/dbgapr_dev documentation built on May 8, 2019, 11:03 p.m.