[R] metafor package: changing decimal in forest plot to midline decimal

Michael Dewey info at aghmed.fsnet.co.uk
Mon Jul 7 13:02:23 CEST 2014

At 09:08 07/07/2014, Dietlinde Schmidt wrote:
>Thanks for that link, Wolfgang. Unfortunately, 
>there comes the Warning with it:
>"(process:3634): Pango-WARNING **: Invalid UTF-8 
>string passed to pango_layout_set_text()"
>and decimal being "scrambled" in forest plot and 
>not displaying the midline decimal.
>I think it has to do with the fact, that only 
>1-byte-codes are allowed for options(OutDec="\xB7").
>Or does it have to do with me using Ubuntu?

I am not an expert on encodings but I think that 
in Unicode it is indeed two bytes but for some 
reason in the encoding used in Windows it is a 
single byte. It may be that some expert in 
encodings can tell you how to temporarily reset 
your locale in Ubuntu but I am not that expert.

>Apart from that the options-command does not 
>seem to change the decimal of values on the "true" x-axis under the plot.
>Still searching for a solution.
>Am 05.07.2014 19:06, schrieb Viechtbauer Wolfgang (STAT):
>>I found this:
>>So, use this before drawing the forest plot:
>>Wolfgang Viechtbauer, Ph.D., Statistician
>>Department of Psychiatry and Psychology
>>School for Mental Health and Neuroscience
>>Faculty of Health, Medicine, and Life Sciences
>>Maastricht University, P.O. Box 616 (VIJV1)
>>6200 MD Maastricht, The Netherlands
>>+31 (43) 388-4170 | http://www.wvbauer.com
>>From: r-help-bounces at r-project.org 
>>[r-help-bounces at r-project.org] On Behalf Of 
>>Dietlinde Schmidt [schmidt.dietlinde at web.de]
>>Sent: Thursday, July 03, 2014 3:07 PM
>>To: r-help at r-project.org
>>Subject: [R] metafor package: changing decimal 
>>in forest plot to midline        decimal
>>Dear R-Community,
>>I need to change the punctuation of the reported weights, effect sizes
>>and confidence intervals in a forest plot created with the
>>forest()-function in the metafor-package.
>>Midline decimal means that it looks like this (23·6) rather than that
>>Do I need to change the forest()-function and if yes which part exactly?
>>Or is there an otherway how I can do it maybe by changing the
>>rma()-function, of which the forest()-function is then applied to?
>>Thanks for any hints and tipps!
>>Cheers, Linde
>>R-help at r-project.org mailing list
>>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>and provide commented, minimal, self-contained, reproducible code.

Michael Dewey
info at aghmed.fsnet.co.uk

More information about the R-help mailing list