How to control the size of labels on heatmaps in DiffBind
1
0
Entering edit mode
epstein • 0
@epstein-14534
Last seen 3.7 years ago

In DiffBind when you draw a heatmap based on an experiment with a small number of observations the labels are quite large and only a few characters fit on the screen.  As the number of observations goes up the font size goes down and more characters are printed.  I'm' wondering if I can gain control of the font size in the labels, to enable me to see more characters even in experiments based on a small number of observations.  Note, I'm not talking about main and sub titles, which it seems I can control with statements like cex.sub = 0.5 (etc.). I'm drawing the heatmaps with a pdf() statement followed by a plot() statement and a dev.off() statement, using R in a non graphical UNIX environment.  I'm fairly new to R so if this is something obvious to more experienced R users I would not know it.

Thank you

diffbind labels heatmap • 804 views
ADD COMMENT
0
Entering edit mode
Rory Stark ★ 4.0k
@rory-stark-5741
Last seen 22 hours ago
CRUK, Cambridge, UK

The dba.plotHeatmap() function will accept additional parameters for control the plotting of the heatmap. If you look at the help page for gplots::heatmap.2, you can find a bunch of parameters you can set. Specifically, you can set cexRow to change the size of the row labels.

Cheers-

Rory

ADD COMMENT

Login before adding your answer.

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