Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add title to meta analysis forest plot

Tags:

r

I am meta-analysing some studies and drawing a forest plot for my results. However I can`t seem to get the forest plot to display the title.

An example of my code is:

require(meta)
parameter1<-metaprop(sm="PLOGIT", 
                 event=c(4,16,3,2,10,1,0,2), 
                 n=c(90,402,89,29,153,86,21,48), 
                 level = 0.95, 
                 studlab=c("study 1",
                           "study 2",
                           "study 3",
                           "study 4",
                           "study 5",
                           "study 6",
                           "study 7",
                           "study 8"), 
                 title="meta analysis 1")
forest(parameter1)

When it produces the forest plot, the title "meta analysis 1" is missing.

How can I add this in?

Thanks in advance,

Timothy

like image 200
Timothy Alston Avatar asked Sep 11 '12 14:09

Timothy Alston


People also ask

Is a forest plot a meta-analysis?

We get a new result – more reliable – with a combined population, bigger than any prior population. This is known as a meta-analysis. In this kind of study, we often see a graph, called a forest plot, which can summarise almost all of the essential information of a meta-analysis.

What is the purpose of using a forest plot in a meta-analysis?

A forest plot is a useful graphical display of findings from a meta-analysis. It provides essential information to inform our interpretation of the results. Typically, a forest plot contains 6 basic “columns”, though additional columns can be added to provide more information.


1 Answers

Seems to me the forest function does not have any obvious way of plotting a title. But do not despair, forest uses grid graphics, and we can easily add the title manually like this.

grid.text("My custom title", .5, .9, gp=gpar(cex=2))

See ?gpar for how to style the text.

like image 74
Backlin Avatar answered Sep 27 '22 22:09

Backlin