Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

annotate_CI = TRUE removes ggtitle() #14

Open
Deleetdk opened this issue Apr 29, 2023 · 0 comments
Open

annotate_CI = TRUE removes ggtitle() #14

Deleetdk opened this issue Apr 29, 2023 · 0 comments

Comments

@Deleetdk
Copy link

Reprex:

library(metaviz)
library(metafor)
#> Loading required package: Matrix
#> Loading required package: metadat
#> Loading required package: numDeriv
#> 
#> Loading the 'metafor' package (version 4.0-0). For an
#> introduction to the package please type: help(metafor)
library(tidyverse)

rma_fit = rma(yi, vi, data=escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg), method="REML")

viz_forest(rma_fit) + 
  ggtitle("Title is shown")
viz_forest(rma_fit, annotate_CI = T) + 
  ggtitle("Title is not shown")
viz_forest(rma_fit, annotate_CI = T) + 
  ggtitle("Title is now shown again") +
  theme_update(title = element_text())

title shown

title not shown

title shown again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant