Skip to content

changing font size in Forest plot code.

4 messages · David Winsemius, Gerard Smits, Michael Dewey

#
On Jan 19, 2014, at 1:13 PM, Gerard Smits wrote:

            
Wouldn't it just be needed to specify grid parameters (as exemplified several other places in that code)  in the code where 'labels' are created?

...
labels[[j]][[i]] <- textGrob(labeltext[i, j], x = x, 
                just = just, gp = gpar(fontsize=8, fontface = if (is.summary[i]) "bold"
                else "plain", col = rep(col$text, length = nr)[i]))
...

Seems to succeed (once the errant and quite strange double comma character '?' is removed and replaced with a proper double quote.) If you are doing this on a word processor, then you should convert to a programming text editor.
#
Hi David,

That worked perfectly.  I had tried something like that, but obviously messed up the change.

Thanks for your help. Much appreciated.

Gerard
On Jan 19, 2014, at 2:16 PM, David Winsemius <dwinsemius at comcast.net> wrote:

            
#
At 21:13 19/01/2014, Gerard Smits wrote:
Dear Gerard
Unless you are particularly wedded to using rmeta and/or grid 
graphics you could always try one of the other packages from CRAN 
which provide customisable forest plots like metafor or meta.

Incidentally I am not sure whether the upper case F in your subject 
line is deliberate but the story that the plots are named after an 
Oxford cancer researcher named Forest is believed to be apocryphal 
and it is their supposed resemblance to a collection of trees which 
is the source. And, no, they do not remind me of trees either ...
Michael Dewey
info at aghmed.fsnet.co.uk
http://www.aghmed.fsnet.co.uk/home.html