[R] main title in plot; outer=TRUE (cut off)

jim holtman jholtman at gmail.com
Fri Dec 16 14:49:23 CET 2011


Also try adding 'line = -1' and adjusting for the proper position.

title(outer=TRUE,adj=0,main = list("1 a)", cex=1.1,col="black",
font=2), line = -1)

On Fri, Dec 16, 2011 at 8:44 AM, jim holtman <jholtman at gmail.com> wrote:
> try moving the 'par' function call before the plot; you need to have
> the margins set before you do the 'plot'ting.  Also not reproducible
> since 'data' not provided.
>
> On Fri, Dec 16, 2011 at 5:25 AM, AlexC <alexandre.chausson at unil.ch> wrote:
>> Hello,
>>
>> I'm trying to position a plot title "1 a)" in the top left corner of a
>> graph; i've set outer=TRUE for it to be in the outer margin unfortunately
>> this is cut off.  Is there a way either to make it so that it is not cut off
>> or increase the number of margins and then place it in margin below the
>> outer?
>>
>> Heres what I have so far
>> windows(width=7,height=7)
>> plot(data$x,data$y,ylab="ylab",xlab="xlab",cex=1.5,cex.lab=1.5,cex.axis=1.5,font.axis=3,axes=FALSE)
>> par(mar=c(5,4,4,2)+0.2)
>> title(outer=TRUE,adj=0,main = list("1 a)", cex=1.1,col="black", font=2))
>>
>> thank you for your help in advance
>>
>>
>>
>> --
>> View this message in context: http://r.789695.n4.nabble.com/main-title-in-plot-outer-TRUE-cut-off-tp4204006p4204006.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.
>
>
>
> --
> Jim Holtman
> Data Munger Guru
>
> What is the problem that you are trying to solve?
> Tell me what you want to do, not how you want to do it.



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.



More information about the R-help mailing list