bug with mai , pdf, and heatmap ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bug with mai , pdf, and heatmap ?

Ken Termiso
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


______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: bug with mai , pdf, and heatmap ?

Sundar Dorai-Raj

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.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html