[R] My forest plot is not fit to windows in R software

Michael Dewey ||@t@ @end|ng |rom dewey@myzen@co@uk
Wed Jan 11 11:30:12 CET 2023


Dear Fahimeh

Try preceding your call of forest.meta with

pdf("myplot.pdf")
forest.meta(..............)
dev.off()

Why did you set xlim to c(0, 1)

Michael

On 10/01/2023 19:37, Fahimeh Alizadeh wrote:
> Dear Prof.
> Thank you for your kind response. I have only used:
> 
> install.packages("tidyverse")
> 
> install.packages("meta")
> 
> install.packages("metafor")
> 
> library(tidyverse)
> 
> library(meta)
> 
> library(metafor)
> and then,
> 
> forest.meta(hidemeta, layout="|RevMan5|", xlab="Proportion", comb.r=T, comb.f=F, xlim = c(0,1), fontsize=10, 
> digits=3)
> 
> Unfortunately I am not familiar to R software, I have not chosen graphics device. could you please help me to choosegraphics format like pdf?
> 
> 
> All the best for you
> 
> 
> Sincerely,
> 
> Fahimeh Alizadeh
> 
> 
> 
> 
> 
> Dr. Fahimeh Alizadeh
> Post-Doctorate Fellow and Ph.D
> Microbial Biotechnology
> Islamic Azad University
> 
> 
> 
> 
> 
> 
> On Tuesday, January 10, 2023 at 09:46:40 PM GMT+3:30, Michael Dewey 
> <lists using dewey.myzen.co.uk> wrote:
> 
> 
> Dear Fahimeh
> 
> It would help if you also told us what package you are using as there
> are several which perform forest plots. I assume it is meta.
> 
> Your plot is cropped on three side as far as I can see. What parameters
> did you give to the call of the graphics device? What happens if you use
> a different graphics format like pdf? Then we may be able to see where
> the issue lies.
> 
> Michael
> 
> On 10/01/2023 12:30, Fahimeh Alizadeh via R-help wrote:
>  > Dear Prof. My forest plot is not fit to windows in R software, I have 
> 49 studies but forest plot only show from 9 to 42.
>  > forest.meta(hidemeta, layout="RevMan5", xlab="Proportion", comb.r=T, 
> comb.f=F, xlim = c(0,1), fontsize=10, digits=3)
>  >
>  >
>  > Whould you please help me to access full forest plot? Thank you
>  >
>  > Sincerely,Fahimeh
>  >
>  > Dr. Fahimeh AlizadehPost-Doctorate Fellow and Ph.DMicrobial Biotechnology
>  > Islamic Azad University
> 
>  >
>  >
>  >
>  >
>  >
>  >
>  > ______________________________________________
>  > R-help using r-project.org <mailto:R-help using r-project.org> mailing list -- To 
> UNSUBSCRIBE and more, see
>  > https://stat.ethz.ch/mailman/listinfo/r-help 
> <https://stat.ethz.ch/mailman/listinfo/r-help>
>  > PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html 
> <http://www.R-project.org/posting-guide.html>
>  > and provide commented, minimal, self-contained, reproducible code.
> 
> -- 
> Michael
> http://www.dewey.myzen.co.uk/home.html 
> <http://www.dewey.myzen.co.uk/home.html>
> 
> 
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>	Virus-free.www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

-- 
Michael
http://www.dewey.myzen.co.uk/home.html



More information about the R-help mailing list