[R-meta] question on forest plot formatring
g@b|k|m01 @end|ng |rom gm@||@com
Sat Jun 10 08:01:15 CEST 2023
Thanks a lot for your response.
Since I have a lot of lines in my forest plot (with a large number of
correlations ) therefore I am using a small font size in order to make the
summary of the model's results line more readable, I thought that maybe it
is possible to print in the plot the model's summary results in two lines
instead of one, just as a possible option...? Since I mentioned I was using
this example as base code:
I think maybe there exist some parameters in the function "mlabfun" could
be a possible solution?
## a little helper function to add Q-test, I^2, and tau^2 estimate info
mlabfun <- function
" (Q = ", .(formatC
", df = ", .(res$k - res$p),
", p ", .(metafor
digits=2, showeq=TRUE, sep=" ")), "; ",
" = ", .(formatC
tau^2, " = ", .(formatC
Regarding spacing the columns of at right hand side of the plot that is
"weight %" and CI fisher's z" I could not find a parameter to space them a
tab to make the plot more redabel.
Thanks a lot.
On Thu, Jun 8, 2023 at 5:20 PM Michael Dewey <lists using dewey.myzen.co.uk>
> Comments in-line
> On 08/06/2023 11:46, Gabriel Cotlier via R-sig-meta-analysis wrote:
> > Hello all,
> > I have taken as an example the following subgroups plot :
> > would like to know if is possible break text line of the results--both
> > each subgroup and for the total effect of all groups--in two lines as
> > follows:
> > line 1: "RE Model subgroup results : ''
> > line 2 "(Q = 4.06, df = 1, p = 0.04; I2 = 75.4%, t2 = 0.04)"
> Haev you tried including an explicit new-line in the string(s)? Note you
> may need to alter the rows parameter.
> > Also wanted to ask if the column for either risk ratio--or alternatively
> > for weights and Fisher's zr-- and the columns for CI can be spaced?
> Not sure I know wht "spaced" means here but their position is controlled
> by ilab.xpos I think so you need to experiment there.
> > Thanks a lot.
> > Kid regards,
> > Gabriel
> > [[alternative HTML version deleted]]
> > _______________________________________________
> > R-sig-meta-analysis mailing list @ R-sig-meta-analysis using r-project.org
> > To manage your subscription to this mailing list, go to:
> > https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis
[[alternative HTML version deleted]]
More information about the R-sig-meta-analysis