[R] bug with mai , pdf, and heatmap ?

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Thu Jan 12 22:32:41 CET 2006


Ken Termiso wrote:
> Hi all,
> 
> When using heatmap() with a pdf driver, and specifying parameters for 
> mai in heatmap, I get a printout of the mai parameters at the top of the 
> pdf...see attachment.
> 
> This is on win2k pro with R2.2.1
> 
> Thanks,
> Ken
> 
> 

Not a bug since ?heatmap has a "main" argument. Thus,

heatmap(..., mai = c(1,2,3,4))

is actually interpretted as

heatmap(..., main = c(1,2,3,4))

due to R's partial matching of the argument list. You should try:

pdf()
par(mai = c(1,2,3,4))
heatmap(...)
dev.off()

Hopefully I've assessed this correctly.

HTH,

--sundar

P.S. See the posting guide regarding attachments to the list.




More information about the R-help mailing list