> library(gplots)
Attaching package: ‘gplots’
The following object is masked from ‘package:stats’:
lowess
> > setwd(“/home/zyshen/work/QM_nanjing”) > data2<-read.csv(“combined_example.level_5.csv”, header=T, sep=”,”) > data2plot<-data.matrix(data2[2:3]) > row.names(data2plot)<-data2[,1] > heatmap.2(data2plot,trace=”none”,cexCol = 2,col=greenred(50), margins = c(5, 40), sepwidth=c(0.05,0.05))
if (!require(“gplots”)) { install.packages(“gplots”, dependencies = TRUE) library(gplots) } if (!require(“RColorBrewer”)) { install.packages(“RColorBrewer”, dependencies = TRUE) library(RColorBrewer) } […]
Recent Comments