Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change paper orientation for R plots to landscape

Tags:

r

orientation

Basic R plots (plot(x=..., y=...)) appear to print to portrait-oriented, letter-sized paper. How can I change this to landscape-oriented?

like image 850
eykanal Avatar asked Jan 10 '12 15:01

eykanal


People also ask

How do you change the orientation of a report to landscape?

Use different orientations in the same document Select the pages or paragraphs whose orientation you want to change. Click PAGE LAYOUT > Page Setup dialog box launcher. In the Page Setup box, under Orientation, click Portrait or Landscape. Click the Apply to box, and click Selected text.

What is landscape view paper?

1. When referring to graphics or printing, landscape mode is a horizontal orientation of a document or image. Landscape mode is commonly used to print charts, wider images, and text that may not fit properly if the page is oriented in portrait mode (vertically).

What is orientation in page layout?

Page orientation is the way in which a rectangular page is oriented for normal viewing. The two most common types of orientation are portrait and landscape.

What is picture orientation?

Description: Portrait orientation is the one in which the longer sides of the rectangle are vertical. It's named this way because this is generally the orientation that people choose when taking a portrait, or a photograph of a person.


1 Answers

You can change this when you open the graphic device. For example, for X11:

X11(width=4,height=3)

For postscript() and pdf() you can change the paper size by specifying the paper argument: set it to "a4r" and "USr" for rotated (landscape).

Other graphic devices have similar mechanisms. See the online help for more details.

like image 100
NPE Avatar answered Sep 19 '22 19:09

NPE