The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


news:news

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
news:news [2023/05/09 06:42] Wolfgang Viechtbauernews:news [2023/08/13 10:21] Wolfgang Viechtbauer
Line 2: Line 2:
  
 ~~NOTOC~~ ~~NOTOC~~
 +
 +==== 2023-08-13: Dynamic Plot Colors Based on the RStudio Theme ====
 +
 +I am quite excited about a new feature that will be part of the upcoming version of the metafor package. The package now creates all plots in such a way that (if one sets ''[[https://wviechtb.github.io/metafor/reference/mfopt.html|setmfopt]]''''(theme="auto")'') they will have a consistent look depending on the chosen [[https://docs.posit.co/ide/user/ide/guide/ui/appearance.html#editor-themes|RStudio theme]]. You can see below some examples of how various plots change their look according to the theme:
 +
 +{{news:plots-rstudio-theme.mp4?800x500&nolink}}
 +
 +This creates a more pleasing experience when working interactively with RStudio, but could also be useful when creating presentations that do not use a white background. 
 +
 +The default setting (''[[https://wviechtb.github.io/metafor/reference/mfopt.html|setmfopt]]''''(theme="default")'') uses the default colors of the plotting device (which is typically a white background and a black foreground color), but one can also use ''[[https://wviechtb.github.io/metafor/reference/mfopt.html|setmfopt]]''''(theme="dark")'' to force plots to be drawn using a 'dark mode' (this may be useful when working with a different programming editor or IDE that also uses a dark mode).
  
 ==== 2023-05-08: Version 4.2-0 Released on CRAN ==== ==== 2023-05-08: Version 4.2-0 Released on CRAN ====
news/news.txt · Last modified: 2024/03/29 10:44 by Wolfgang Viechtbauer