Re: [R] ps or pdf

From: Stefan Grosse <>
Date: Tue, 01 Apr 2008 10:41:24 +0200

On Monday 31 March 2008 10:17:50 pm Francois Pepin wrote:

FP> Example of row names that are truncated in Illustrator (* denoting 
FP> truncation):
FP> CCDC3*4 (2nd row)
FP> MUC2*0 (3rd row)
FP> MBNL*1 (8th row)

Those are not truncated with me but there are some truncated, this is true. Note that if one uses the option paper="special" the papersize will set at the plot size, I always would recommend that.

After having a look at your code I tried:


# this is what I use for eps creation normally
postscript('/home/sgrosse/',paper="special",horizontal=F,onefile=T) heatmap(matrix1,labRow=row)

# for comparison

pdf('/home/sgrosse/heatmap.pdf',paper='special') heatmap(matrix1,labRow=row)

what I get with the ps creation is an error:

"Error in : outer margins too large (fig.region too small) Error in par(op) : invalid value specified for graphical parameter "mai""

So I would guess it is a bug in heatmap .

But what you could do is increasing the size of the ps plot:

postscript('/home/sgrosse/',paper="special",horizontal=F,onefile=T,width=8,height=8) heatmap(matrix1,labRow=row)

for example works.

FP> The top right cell (26, TXNRD2) is grouped with the cell just below it FP> (26, CCDC34). It's more of a curiosity than anything else.

I do not get what you mean here with grouping.


(R-2.6.2, Fedora 8)

University of Erfurt

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 01 Apr 2008 - 08:45:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 Apr 2008 - 10:30:25 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive