[R-meta] adapting forest plot visual

Gerta Ruecker ruecker @end|ng |rom |mb|@un|-|re|burg@de
Wed Jun 3 10:54:53 CEST 2020


Dear Norman,

The arguments you need for forest.meta are col.study, maybe also 
col.square and col.square.lines or col.inside, see help("forest.meta"). 
These arguments can also be vectors with the length equal to the number 
of studies.

Here is an example:

library(meta)
data("Olkin95")
m1 <- metabin(event.e, n.e, event.c, n.c, data = Olkin95)
forest(m1, col.study = heat.colors(70))
forest(m1, col.study = c(rep("black", 10), rep("red",10), rep("blue", 
10), rep("green",10), rep("orange",10), rep("gray",10), rep("violet",10)))

You may define the color vector before, using your characteristic and 
the desired order.

Best,

Gerta

Am 02.06.2020 um 13:24 schrieb Norman DAURELLE:
> Dear list,I have now run a meta-analysis based on relationship slopes between two variables and I am trying to make the forest plot easily readable and understandable.I used the "order" parameter of the forest function to order outcomes from lowest estimate on the first line to highest estimate on the last line, but I would like to display the outcomes that share a characteristic in the same colour ( for example, all effect-sizes coming from studies conducted in the same country displayed in one colour ). I have been looking for a way to do that in the documentation of the forest function of the meta package, but there are a lot of arguments to that function and I can't find one that does what I would like to do. It doesn't necessarily have to be based on colour but if I can change the shape of the square representing the effect sizes that come from the same place for example that would also do the trick, even though colour is more direct.Would you know of a way to do that ? Thank yo
>   u !Norman
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-meta-analysis mailing list
> R-sig-meta-analysis using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis

-- 

Dr. rer. nat. Gerta Rücker, Dipl.-Math.

Institute of Medical Biometry and Statistics,
Faculty of Medicine and Medical Center - University of Freiburg

Stefan-Meier-Str. 26, D-79104 Freiburg, Germany

Phone:    +49/761/203-6673
Fax:      +49/761/203-6680
Mail:     ruecker using imbi.uni-freiburg.de
Homepage: https://www.uniklinik-freiburg.de/imbi.html



More information about the R-sig-meta-analysis mailing list