Skip to content

[R-meta] Unnecessary diagonal line

3 messages · Hazel Wellington, Gerta Ruecker, Wolfgang Viechtbauer

#
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
#
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:

  
    
#
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