visualizationBox: Generate a boxplot

Description Usage Arguments Value Author(s) Examples

View source: R/visualizationBox.R

Description

Generate a boxplot to compare a specific phenotype for a set of samples.

Usage

1
2
3
4
5
6
7
8
visualizationBox(
  object,
  cancer_type = NULL,
  patients = NULL,
  phenotype,
  metadata_col,
  metadata_levels
)

Arguments

object

matrix Patient information (matrix)

cancer_type

vector A vector of cancer types of interest from 'type' column

patients

vector A vector of patient barcodes from 'bcr_patient_barcode' column

phenotype

character A string of a specific phenotype (column name)

metadata_col

character A string of the column name (phenotype) to be split into groups

metadata_levels

vector A vector of two values (factors) to be compared

Value

None/plot a box plot

Author(s)

Heewon Seo, Heewon.Seo@uhnresearch.ca

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
tcga <- downloadData()

visualizationBox(tcga, cancer_type = c("BLCA", "BRCA"),
    phenotype = "age_at_initial_pathologic_diagnosis",
    metadata_col = "race", 
    metadata_levels = c("WHITE", "ASIAN"))

visualizationBox(tcga, cancer_type = c("BLCA", "BRCA"),
    phenotype = "age_at_initial_pathologic_diagnosis",
    metadata_col = "race", 
    metadata_levels = c("WHITE", "ASIAN", "BLACK OR AFRICAN AMERICAN"))

lootpiz/PatiDem documentation built on July 27, 2020, 12:35 a.m.