danheck / metaBMA

Bayesian Model Averaging for Random and Fixed Effects Meta-Analysis
https://danheck.github.io/metaBMA/
28 stars 2 forks source link

plot_forest: 'main' doesn't let you change the plot title text #24

Closed DanielEWeeks closed 1 year ago

DanielEWeeks commented 2 years ago

I would like to change the title text of the plot generated by plot_forest, but using the main argument does not work because it is hard-coded here instead of being passed in from the main call:

 plot_forest.default(meta,
    from = from, to = to, summary = summary,
    shrinked = shrinked, cex.axis = cex.axis,
    main = "Meta-Analysis with Model-Averaging", ...
  )

Example:

> plot_forest(fit_BMA_test, shrinked ="",
+             mar = c(4.5, 25, 4, 0.3),
+             cex.axis = 2,
+             cex.main = 2,
+             cex.lab = 2, main="Test")
Error in plot.default(x = Effect, y = -100, xlim = range(xxx), yaxt = "n",  : 
  formal argument "main" matched by multiple actual arguments
danheck commented 2 years ago

Thanks for the suggestion. Currently, I do not have the time to fix this, but I will look into it in the next weeks.

danheck commented 1 year ago

Thanks again for reporting this bug.

The new version metaBMA 0.6.9 fixes this issue and has been submitted to CRAN.