On Dec 13, 2009, at 9:53 AM, David Winsemius wrote:


On Dec 13, 2009, at 9:33 AM, Gabor Grothendieck wrote:

Google for
r-help title problem
and read the entire thread for a number of approaches.

This is a minor modification of Gabor's code in that thread that shows it is possible to have varying font sizes within the main arguments. Unfortunately it also demonstrates that I don't know how to create repeating strings properly, but I can live with that limitation in my knowledge for now.

I got an offlist question asking if I knew why my code produced 4 lines in the title. I do and I was expressing annoyance at my inability to figure out how to make rep() stop forcing it to be so. It's because paste returns a vector of lines when given a 2 element vector argument by rep("sub", i-1) when i==2.

Less perplexing code, and hopefully more pleasant to look at graph, might be:

opar <- par(oma = 4 * c(1, 1, 1, 1), no.readonly = TRUE); par(mfrow = 1:2)
plot(1:3, 9:7)
plot(1:3, 7:9)
for(i in 1:3) title(main = paste(c("", "sub-", "sub-sub-")[i], #skip rep()
                                       "Title", sep=""),
                    line = 1-i, outer = TRUE, cex.main=2.5/i )
par(opar)

--
David.

opar <- par(oma = 4 * c(1, 1, 1, 1), no.readonly = TRUE); par(mfrow = 1:2)
plot(1:3, 9:7)
plot(1:3, 7:9)
for(i in 1:3) title(main = paste(rep("sub",i-1),"Title", sep="-"), line = 3-i, outer = TRUE, cex.main=3/i); par(opar)

--
David.



On Sun, Dec 13, 2009 at 8:54 AM,  <simon.ging...@unil.ch> wrote:
Hello,

I just have two questions I cannot figure out.

1) I would like to have a subtitle just below the main title
on my graphs and I cannot figure out how to do this, is it
possible? or is it only possible to have it at the bottom?

2) I need to run Conova post hoc test, do you know if it is
coded in R? any package I would find this test in?

Thank you very much for all the help

Have a nice sunday

Simon

______________________________________________
R-help@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.


______________________________________________
R-help@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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to