I am trying to create a heat map of genes with log2foldchange values. Following is my code,
pdf("fold_change_heatmap_top_100.pdf" , height=20, width=15)
x <- as.matrix(fold_change_genes[fold_change_genes$gene %in% top_100 , c(2,3,4)])
heatmap(x, margins = c(6,6) , cexCol=2 )
dev.off()
But I cannot see the legend for this plot. I am not sure how draw that..Could anyone please help me? I cannot use gplots::heatmap.2 as it is not installed on the cluster I am working on yet. Please suggest something.
Thanks,
Ashu
pdf("fold_change_heatmap_top_100.pdf" , height=20, width=15)
x <- as.matrix(fold_change_genes[fold_change_genes$gene %in% top_100 , c(2,3,4)])
heatmap(x, margins = c(6,6) , cexCol=2 )
dev.off()
But I cannot see the legend for this plot. I am not sure how draw that..Could anyone please help me? I cannot use gplots::heatmap.2 as it is not installed on the cluster I am working on yet. Please suggest something.
Thanks,
Ashu
Comment