s-news
[Top] [All Lists]

[S] incomplete PDFs on windows/95

To: s-news@wubios.wustl.edu
Subject: [S] incomplete PDFs on windows/95
From: blair stephenson <blairs@lanl.gov>
Date: Thu, 24 Jun 1999 15:48:08 -0600
Sender: owner-s-news@wubios.wustl.edu
Hi:

        I'm trying to print a large number of PDF files.  With pdf.graph, the
resulting PDFs are less than complete. The mtext "main" heading and most of
the X axis labels (item.names) do not print.  The graph itself is
distorted, althouth that can be improved by adjusting the width/height
options. 

        I've tried several variations on the width, height and region options in
the pdf.graph command.  But no matter, I can't seem to find anything that
results in the complete graph printing out correctly.  My understanding is
the the region option specifies the imagable region, which I'm trying to
maximize.

        If I run the function below without reference to pdf.graph, I can save 
the
completed graph thru Adobe Acrobat and it captures everything just fine and
looks more or less identical to the original S-Plus version.  Since I have
a lot of these, I like to save them on the fly, if possible.

        Does anyone have any ideas about why I'm not able to capture the entire
graph with pdf.graph? (4.5 on windows/95).

Thanks,
Blair Stephenson
 

*****************************
function(i)
{
                pdfname <- paste("F:\\XXXX\\XXXXXX\\XXXX\\XXXX\\", "X", i, 
".pdf", sep = "")
                par(oma = c(0, 0, 0, 0))
                par(mfrow = c(1, 1), mar = c(5, 5, 6, 5), lwd = 3)
                pdf.graph(file = pdfname, color = T, horizontal = T, width = 
8.5, height
= 11, region = c(0, 0, 8.5, 11))
                barplot(as.numeric(vmeans98[1:20]), outer = F, col = 12, las = 
1, ylim =
c(1, 5), axes = F)
                par(cex = 0.6)
                axis(1, at = plotvec, labels = item.names, srt = 45)  # ONLY 5 
of the 20
bar labels print in the PDF
                axis(2, labels = c(1, 2, 3, 4, 5))
                par(cex = 1.25, font = 2)
                mtext("THIS HEADING DOESN'T SHOW"", side = 3, line = 5.4, outer 
= F)
        
.
.
.
dev.off()
**********************************              
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] incomplete PDFs on windows/95, blair stephenson <=