On Oct 6, 2010, at 5:04 AM, Ben Huas Thong wrote:

Hi,

I would like to change the font type (to courier) of my rows labels when I plot a heatmap with R.

I have used cexRow=0.7 to modify the size but didn't find anything regarding font type.

heatmap(as.matrix(cebpa50), margins=c(5,10) , Colv=NA , scale="column", col=col4, cexRow=0.7)

Looking at the help page for heatmap it seems highly probable that it is a base graphics function since it uses layout, so ...

?par # very often the answer to plotting questions and is linked from the help page for heatmap, further evidence of my supposition.

The specific choices you need to make from there (with arguments font and family) are going to be determined by the specifics of the (unstated) device you are using.

?device
options("device")

--

David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to