hello carol,
     I use the "savePlot" command to save images produced in R. Till the
pop-up graphical window containing the image is open, this command can be
used. To save in 'tiff' format one may go like this -
 savePlot(filename=paste("*name_by_which_to_save*
",type="tiff",sep='.'),type="tiff")

I haven't used the heatmap.2 command, but the error messages seem to tell
something wrong with the heatmap command and not with the tiff(...) command.


cheers,
amit mandal

Graduate student
Genomics & Molecular Medicine Lab
IGIB, Delhi

On Fri, Sep 4, 2009 at 12:58 PM, carol white <wht_crl@yahoo.com> wrote:

> Hi,
> I want to save the image produced by heatmap.2 in a tiff file. To do so, I
> call
>  tiff(filename ='test.tiff', res = 300)
> heatmap.2(c2,
> col = greenred(200),labCol = "", labRow = "",breaks = seq(-3,3,0.03),
> trace = "none", dendrogram = "none", keysize = 2, scale = "none")
>
> But I get the following error message after the call of heatmap.2
>
> Error in plot.new() : unimplemented cairo-based device
> Error in par(op) : invalid value specified for graphical parameter "pin"
>
> I use R version 2.9.1, system x86_64, linux-gnu
>
> Look forward to your reply,
>
> Carol
>
>
>
>        [[alternative HTML version deleted]]
>
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>



-- 
---------------------------------------------------------------
The robbed that smiles, steals something
from the thief.
- Shakespeare
---------------------------------------------------------------

	[[alternative HTML version deleted]]

