[R] Fitting large titles in a plot

jim holtman jholtman at gmail.com
Thu Dec 6 20:07:44 CET 2007


try this:


plot(0, main=paste(strwrap("This is my really long title and it's so
long that I can see just about half of it.", width=50),
collapse="\n"))

On Dec 6, 2007 7:16 AM, Svempa <fempa at yahoo.com> wrote:
>
> I want to fit a fairly long main title for a plot, supposedly by changing row
> after a while. As for now it starts way outside the picture margin at the
> left and continues way out right passed the right margins.
>
> >plot(A,main="This is my really long title and it's so long that I can see
> just about half of it.")
>
> Any suggestions? Shouldn't be that hard.
>
> --
> View this message in context: http://www.nabble.com/Fitting-large-titles-in-a-plot-tf4956510.html#a14193900
> 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
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list