Skip to content
Prev 327740 / 398503 Next

Greek symbols in study labels and custom summary lines in forest plot (meta)

On Jul 29, 2013, at 11:52 AM, Rapsomaniki, Eleni wrote:

            
I tried a variety of plotmath and substitute strategies but the arguments to studlab get first processed with 'as.character' and then put into a data.frame before printing. Dataframes do not accept language objects, so R expressions could not be processed.
Error in as.data.frame.default(x[[i]], optional = TRUE) : 
  cannot coerce class ""expression"" to a data.frame


Best I could to was '

   ... ,studlab=paste('Fixed ?[w]=',study), ....
Unfortunately all of the printing to the device is handled inside the 'forest' function and no list representation is returned as a value to be augmented and later printed. So the input data would need to be entered in a manner that gets processed as text or you would need to modify the code. I don't have the knowledge of the meta package that can get there.