variableHistogram: Variable histogram

Description Usage Arguments Value Methods (by class)

Description

The method draws the histograms of a given dbGaP variable.

Usage

1
2
3
4
5
variableHistogram(object, phvAcc, ...)

## S4 method for signature 'Study,character'
variableHistogram(object, phvAcc, ...,
  withDensity = TRUE, saveToDir = "", showPlot = TRUE)

Arguments

object

Study class object.

phvAcc

a character string. The dbGaP variable accession.

...

There are optional arguments.

withDensity

a logical value. (optional) If TRUE (default), draws the histograms with a kernel density plot; If FALSE, draws without a kernel density plot.

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 created graph is saved as files regardless.

Value

a data frame. The data used for plotting.

Methods (by class)


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