Skip to content
Prev 2126 / 5636 Next

[R-meta] adapting forest plot visual

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: