Heatmap.2
1
0
Entering edit mode
2.7 years ago
Dk ▴ 20

Hi everyone, I am trying to graph a heatmap for my DEGs data but I encountered some errors. This is my code:

heatmap.2(diffGenes, 
          Rowv=as.dendrogram(clustRows), 
          Colv=as.dendrogram(clustColumns),
          RowSideColors=module.color,
          col=myheatcolors, scale='row', labRow=NA,
          density.info="none", trace="none",  
          cexRow=1, cexCol=1, margins=c(8,20))

However, I got the error message:

Error in plot.new() : figure margins too large

Also, for the packages, I am using:

library(tidyverse)
library(gplots)
library(RColorBrewer)

I tried to look it up how to fix it but I couldn't figure out. Please help me out, thank you guys!

heatmap.2 R DEGs • 1.2k views
ADD COMMENT
1
Entering edit mode
2.7 years ago
ATpoint 85k

The RStudio plotting window is too small. Save it to a file, either pdf or png and then view it.

ADD COMMENT
0
Entering edit mode

Yes, it works now! Thank you!!

ADD REPLY
1
Entering edit mode

A small educational note: if an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they work. This will help future users that might find this post find the right answer.

upvote_bookmark_accept

ADD REPLY

Login before adding your answer.

Traffic: 1395 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