Re: [R] x labels out of Quartz canvas

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed, 18 Jun 2008 07:07:33 +0100 (BST)

On Tue, 17 Jun 2008, MeMooMeM wrote:

>
> Thanks a lot!
>
> I looked at the document. It shows how to set the size of the canvas,

I don't believe it does.

> but not how to change it *after* plotting. Now I start with a bigger
> canvas, but the plot is scaled into it, so I am having the same problem
> again :(

You need to set the *margins* not the size of the canvas. See par's mai and mar and the figures in that document.

Hint: see the footer of this message -- if you provide a reproducible example and all the info the posting guide asks for you will get more informative answers.

>
> I keep on reading tough. Thanks a lot for your help!
>
> -Memo
>
>
>
>
> Prof Brian Ripley wrote:
>>
>> You do this by adjusting the margin sizes. Can I suggest you read 'An
>> Introduction to R', which has a section on the layout of graphics (perhaps
>> the only area in which it is comprehensive).
>>
>> On Mon, 16 Jun 2008, MeMooMeM wrote:
>>
>>>
>>> Hi R world,
>>>
>>> I am such a newbie, with only 4-5 days of R experience. I did a search in
>>> forum history but couldn't find a solution to my problem... Sorry if it's
>>> obvious:
>>>
>>> I managed to draw a barplot (yey!) with xlabels of 'long' names
>>> (filenames,
>>> to be particular). To make them readable, I place them perpendicular to
>>> the
>>> axis (las=2). When I do that, however, these names don't fit inside the
>>> Quartz window and they are truncated.
>>>
>>> Is there a way to change the Quartz window size after plotting (or, as an
>>> alternative, to scale the plot down so it fits in there) ?
>>>
>>> Thanks a lot!
>>>
>>> -Memo
>>>
>>> PS: This is the very first of my zillion of questions!

> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
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

______________________________________________
R-help_at_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.
Received on Wed 18 Jun 2008 - 06:23:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 18 Jun 2008 - 18:30:50 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive