On 04/01/2014 02:42 AM, Rich Shepard wrote:
On Mon, 31 Mar 2014, Rich Shepard wrote:
I've read ?plot, ?plot.default, and ?plot.window to learn how to change
the shape of the plot from a square to a rectangle. plot.window suggests
that the aspect (asp) parameter is appropriate but that associates the x
axis size to the value of the y axis and, plot.window suggests that it is
better to make such adjustments with plot itself. My Web searches have
not
found examples of how to do this.
Clarification:
If I specify x11 <- (width = 6, height = 3) (as an example) then the
display has that shape. However, when I want to redirect the output to a
pdf
file with the pdf() command, the resulting plot has reverted to a square
rather than the specified width and height used to display it on the
screen.
What do I do to retain the specified width and height in the pdf output?
Hi Rich,
If you are starting a pdf device, you have to specify the width and
height again - these don't carry over from the screen device.
Jim
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.