[R] Graphic window dimensions
ligges at statistik.tu-dortmund.de
Sun Apr 7 01:22:00 CEST 2013
On 06.04.2013 08:53, Eva Prieto Castro wrote:
> Dear all,
> I have a doubt: if I run windows(width=8.27,
> height=11.69), the size of an A4 paper, does it work correctly in all
Correctly: yes, but not as you expect. It keeps the aspect ration but in
a smaller size if the screen is smaller than the size you specified.
>Or does it depend on the inches of my screen?.
> I ask
> you about this question because I need to make the user see a graph in
> the graph window and he must be able to save the graph as a pdf (using
> the Rgui menu) and the result must be a pdf with A4 size.
Why not use pdf() directly?
Anyway, you can
dev.print(pdf, file="test.pdf", width=8.27, height=11.69)
> Thank you in advance.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help