Re: [R] Bounding Box in pdf files

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue 28 Feb 2006 - 16:16:53 EST

Simple: PDF files do not have a BoundingBox so there is none to find (BoundingBox is associated with postscript files). (The equivalent in a PDF file is the MediaBox or CropBox.)

You have not shown us the LaTeX, but the problem lies there. I would expect you to need to use pdflatex if you want to include PDF graphics.

Please seem further help on a latex list.

On Tue, 28 Feb 2006, Mikael Anderson wrote:

> This is probably a faq but I have not been able to find a solution.

Googling for 'Bounding Box PDF' led me lots of useful information.

> I create a pdf file in R but latex complains that it can't find the bounding
> box. Here is an example:
>
>> pdf(file="test.pdf", onefile=FALSE, width=8,height=8)
>> plot(1:10)
>> dev.off()
> X11
> 2
>> sessionInfo()
> R version 2.2.1, 2005-12-20, sparc-sun-solaris2.9
>
> attached base packages:
> [1] "stats" "graphics" "grDevices" "utils" "datasets" "methods"
> [7] "base"
>
> other attached packages:
> mapdata mapproj maps
> "2.0-17" "1.1-7.1" "2.0-30"
>
> This is the error from latex:
>
> ! LaTeX Error: Cannot determine size of graphic in test.pdf (no Bound
> ingBox).
>
> Any thoughts about what the problem might be?
>
> /Miakel
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Feb 28 16:25:56 2006

This archive was generated by hypermail 2.1.8 : Tue 28 Feb 2006 - 18:08:51 EST