knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
A package to characterize patient demographics
intall.packages("devtools") library(devtools) devtools::install_github("lootpiz/PatiDem")
library(PatiDem)
tcga <- downloadData()
visualizationBox(tcga, cancer_type = c("BLCA", "BRCA"), phenotype = "age_at_initial_pathologic_diagnosis", metadata_col = "race", metadata_levels = c("WHITE", "ASIAN"))
df <- data.frame(column_one = tcga$gender, column_two = tcga$vital_status) statisticalTesting(df, categorical = T) df <- data.frame(column_one = tcga$age, column_two = tcga$race) statisticalTesting(df, categorical = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.