Closed:Condensing dendrogram on heatmap.2
1
0
Entering edit mode
4.9 years ago
sdbaney ▴ 10

I have this heatmap that I'm pretty happy with but the dendrogram extends pretty far left. I'd like to scale it down or bring it in closer to the heatmap. I know that heatmap.2 plots it on a grid so maybe I need to restructure the plotting area with the layout function but I don't quite know how to use it. Does anyone have insight, recommendations?

Here is my code:

 > library(gplots)
> library(RColorBrewer)
> zfpkm<-read.csv("~/Desktop/myosin_tpms_revised_043019.csv")
> rnames<-zfpkm[,1]
> mat_data<-data.matrix(zfpkm[,2:ncol(zfpkm)])
> rownames(mat_data)<-rnames
> my_palette<-colorRampPalette(c("blue", "yellow"))(n=1000)
> heatmap.2(mat_data, Colv=NA, main="Myosin Heatmap", margins=c(12,9), trace="none", dendrogram="row", scale="row")

And here is the heatmap it generates. **I can't get the image to show up: https://ibb.co/10CpDqn

heatmap heatmap.2 visualization gplots • 65 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2664 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6