[R-meta] Unnecessary diagonal line

Viechtbauer, Wolfgang (NP) wo||g@ng@v|echtb@uer @end|ng |rom m@@@tr|chtun|ver@|ty@n|
Tue Sep 6 21:40:33 CEST 2022


Dear Hazel,

Something like this? https://stackoverflow.com/q/28927205/2615367

Yes, that seems to be a general issue when copying metafiles to Word and then turning that into a pdf (via 'Save As' pdf). If you print to pdf (if you have that option), then the issue should not be there. Another thing that seems to fix this is to right-click on the imported image and select 'Edit Picture' (you then get a prompt to turn it into a drawing object - select Yes/Ok), although that may slightly alter the plot.

Best,
Wolfgang

>-----Original Message-----
>From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces using r-project.org] On
>Behalf Of Dr. Gerta Rücker
>Sent: Tuesday, 06 September, 2022 20:05
>To: Hazel Wellington; r-sig-meta-analysis using r-project.org
>Subject: Re: [R-meta] Unnecessary diagonal line
>
>Dear Hazel,
>
>I suggest producing the pdf version of your forest plot directly from R:
>
>pdf("Filename.pdf")
>[your meta/metafor code to create the forest plot]
>dev.off()
>
>Alternatively, you may use RMarkdown https://rmarkdown.rstudio.com/ to
>create code, results and plots in one document (docx, pdf, or html).
>
>Best,
>
>Gerta
>
>Am 06.09.2022 um 19:24 schrieb Hazel Wellington:
>> Hi everyone,
>>
>> My forest plot when copied to a word file looks perfect. But I made a PDF
>> of it and there is a diagonal line that appears over the study/authors
>> column. It shouldn’t be there and I am not sure why it’s there in the first
>> place. Anyone else experienced this? Please help.
>>
>> Thanks,
>> Hazel


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