Complex Heatmap, flexible package for heatmap based on R

Heatmap is great tool for visualizing two dimensional data magnitude using colors. This package provides almost complete features for building a heatmap under multiple conditions. Parameters that are used to customize a heatmap could be extremely complicated. This article try to archive part of the features that have been useful in my recently work. Note down their usage and syntax. Data The dataset used in this article comes from project Tycho, and is about recorded cases of measles in the United States....

September 14, 2020 · 8 min · Yiheng "Terry" Li

Survival Analysis Case Study Using R

From this article, we will use R language to perform survival analysis to a data set, in order to demonstrate some syntax and show the procedural of survival analysis using R. The Data A very classic data set is used in the purpose of demonstration. Here is a glance of the data set. > library(survival) > data(lung) > head(lung) inst time status age sex ph.ecog ph.karno pat.karno meal.cal wt.loss 1 3 306 2 74 1 1 90 100 1175 NA 2 3 455 2 68 1 0 90 90 1225 15 3 3 1010 1 56 1 0 90 90 NA 15 4 5 210 2 57 1 1 90 60 1150 11 5 1 883 2 60 1 0 100 90 NA 0 6 12 1022 1 74 1 1 50 80 513 0 This data set is about “survival in patients with advanced lung cancer from the North Central Cancer Treatment Group....

June 16, 2020 · 5 min · Yiheng "Terry" Li