Hi,
I am trying to make a Heatmap of some analyzed RNAseq data. I am using ggplot2 with R. The problem I have is that I cannot see well the upregulated and the downregulated genes. I can't get the colors shown to be dark enough. I am doing the heatmap with all the genes of the study organism, around 13,000. I'm also not sure that ggplot2 clusters the genes in my data. Is there a way to cluster the genes and see darker colors in the genes upregulated and the downregulated? The code I am using would be the following:
library(ggplot2)
library(reshape2)
g<-read.csv("datos_prueba3.csv") g3<-melt(g)
plot1 <- ggplot(g3, aes(variable, Gene, fill=value)) + geom_tile() + scale_fill_gradient2(low="dark green", high="dark red", mid="green", midpoint=0) + theme(axis.text.y=element_blank())
plot1
Best,
Yes, it makes sense to me, thank you very much. I understand that there is no point in doing a heatmap with so many genes. I have a new question. I understand that it makes more sense to make a heatmap with for example only genes with a p-value < 0.05, right? The question I have now is, How to decide these genes? since the set of genes with p-value < 0.05 on day 2 will not necessarily be identical to the set of genes with p-value < 0.05 on day 5.
Yes, that is a valid point. I usually just collect DEGs from all tested conditions, merge them and put these into the heatmaps. The goal is then to find global patterns of gene expression changes.
Ok, thanks a lot!