Updated intermediate R data visualization materials

This commit is contained in:
Krishna Choudhary 2020-03-24 20:10:44 -07:00
parent 08be3b61c3
commit 0eb7b8b40d
16 changed files with 584 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#Read table.
library(gplots)
dat <- read.table("norm_counts.txt", sep = "\t", header = T)
dat <- as.matrix(dat)
#Save in pdf format.
pdf("Heatmap.pdf", width = 10, height = 10)
heatmap.2(dat,
dendrogram = "column") #Use labRow = "" to turn off row labels.
dev.off()
#Save in TIFF format.
tiff("Heatmap.tiff", width = 10, height = 10, units = 'in', res = 300)
heatmap.2(dat,
dendrogram = "column") #Use labRow = "" to turn off row labels.
dev.off()