[R] Plots: I've deleted axes, now to delete space
Adele_Thompson at cargill.com
Adele_Thompson at cargill.com
Mon May 16 17:45:34 CEST 2011
I just saw this post:
http://r.789695.n4.nabble.com/X11-plot-window-sizes-td900509.html
where is explains that the window size cannot be larger than 85% of your screen. I'm not sure what you are referring to about the copying the whole region, not just the plot. Also, I remember using the width and height, but I am not sure how I used it and am having trouble duplicating it. I cannot put it within the par command. I think it was prior to the par command, but I'm not sure. I need to remember to save a copy of useful commands in a file.
-----Original Message-----
From: gunter.berton at gene.com [mailto:gunter.berton at gene.com]
Sent: Monday, May 16, 2011 10:28 AM
To: Thompson, Adele - Adele_Thompson at cargill.com
Cc: r-help at r-project.org
Subject: Re: [R] Plots: I've deleted axes, now to delete space
Presumably you have read the help file and tried specifying width
and/or height, right? Also, note the comment about copying the whole
region, not just the plot. Does any of this help?
-- Bert
On Mon, May 16, 2011 at 7:41 AM, Schatzi <adele_thompson at cargill.com> wrote:
> I am outputting the plot to a pdf file using the code:
> dev.copy2pdf(file="testing.pdf")
>
> The plots are too small though unless I first manually increase the size in
> R and then use the dev.copy command. Is there a way to automatically
> increase the window size? I tried fin and din, but those do not seem to work
> or they only increase the size to a certain degree, even though I can
> manually increase it to fill my screen.
>
>
> Schatzi wrote:
>>
>> Thanks all for the replies. I am getting better slowly but surely. I
>> imagine that I will get better at figuring out things as well so I don't
>> have to post as many questions. I do lots of searches, but still cannot
>> figure out how to do everything that I need.
>>
>> The new code is as such:
>> par(mfrow=c(4,7), mar=c(2, 2, 2, 1.5), oma=c(1, 1, 4, 0))
>> for (i in 1:28) {
>> a<-seq(1,3,1)
>> plot(a,a, ann=FALSE, main= "plot of a vs a")
>> }
>> mtext("Plot of a vs a",side=3,outer=TRUE)
>>
>>
>> -----Original Message-----
>> From: murdoch.duncan at gmail.com [mailto:murdoch.duncan at gmail.com]
>> Sent: Friday, May 13, 2011 03:25 PM
>> To: Thompson, Adele - Adele_Thompson at cargill.com
>> Cc: Greg.Snow at imail.org; r-help at r-project.org
>> Subject: Re: [R] Plots: I've deleted axes, now to delete space
>>
>> On 11-05-13 4:21 PM, Adele_Thompson at cargill.com wrote:
>>> Easy fix. Under ?par, I don't see where I can enter an overall title.
>>> Should I add a text command or something?
>>
>> mtext() writes text in the margins; argument "outer" puts it in the
>> outer margins.
>>
>> Duncan Murdoch
>>
>>>
>>> -----Original Message-----
>>> From: Greg.Snow at imail.org [mailto:Greg.Snow at imail.org]
>>> Sent: Friday, May 13, 2011 03:17 PM
>>> To: Thompson, Adele - Adele_Thompson at cargill.com; r-help at r-project.org
>>> Subject: RE: [R] Plots: I've deleted axes, now to delete space
>>>
>>> Look at the help for par, specifically the section on 'mar' to set the
>>> per plot margins smaller and the section on 'oma' to leave room for the
>>> overall title.
>>>
>>
>> ______________________________________________
>> 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.
>>
>
>
> -----
> In theory, practice and theory are the same. In practice, they are not - Albert Einstein
> --
> View this message in context: http://r.789695.n4.nabble.com/Plots-I-ve-deleted-axes-now-to-delete-space-tp3521078p3526379.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>
--
"Men by nature long to get on to the ultimate truths, and will often
be impatient with elementary studies or fight shy of them. If it were
possible to reach the ultimate truths without the elementary studies
usually prefixed to them, these would not be preparatory studies but
superfluous diversions."
-- Maimonides (1135-1204)
Bert Gunter
Genentech Nonclinical Biostatistics
More information about the R-help
mailing list