I have a problem with making pdf files. I use the code below: pdf(file="resindex.pdf",width= 6, height= 7, family = "Helvetica", title = "MBF Data",bg="white") bwplot(... dev.off() When I run a script with the above code in it, by using "source", it produces a PDF file which I can not open with Acrobat. When I copy just the lines above, from my editor, into R commander, then the output to the PDF works fine, i.e. I can open the file with Acrobat reader. What is the problem? thank you, in advance for advice! Michael Jerosch-Herold
PDF output:
3 messages · Michael Jerosch-Herold, Uwe Ligges, Brian Ripley
Michael Jerosch-Herold wrote:
I have a problem with making pdf files. I use the code below: pdf(file="resindex.pdf",width= 6, height= 7, family = "Helvetica", title = "MBF Data",bg="white") bwplot(...
You need to print() lattice graphics! This is a FAQ. Uwe Ligges
dev.off() When I run a script with the above code in it, by using "source", it produces a PDF file which I can not open with Acrobat. When I copy just the lines above, from my editor, into R commander, then the output to the PDF works fine, i.e. I can open the file with Acrobat reader. What is the problem? thank you, in advance for advice! Michael Jerosch-Herold
______________________________________________ R-help at 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
See FAQ Q7.22
On Tue, 19 Apr 2005, Michael Jerosch-Herold wrote:
I have a problem with making pdf files. I use the code below: pdf(file="resindex.pdf",width= 6, height= 7, family = "Helvetica", title = "MBF Data",bg="white") bwplot(... dev.off() When I run a script with the above code in it, by using "source", it produces a PDF file which I can not open with Acrobat. When I copy just the lines above, from my editor, into R commander, then the output to the PDF works fine, i.e. I can open the file with Acrobat reader. What is the problem?
You produced no output.
Brian D. Ripley, ripley at 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