Package: foresty Title: Forest Plots and Subgroup Effects from Fitted Regression Models Version: 0.2.0.9000 Authors@R: c( person( "Akihiro", "Shiroshita", email = "akihirokun8@gmail.com", role = c("aut", "cre", "cph") ), person( "Yuki", "Kataoka", email = "youkiti@gmail.com", role = "aut" ) ) Description: Draws forest plots of exposure effects from fitted regression models. Name an exposure and 'foresty' plots its effect. Name an effect modifier as well and it refits the model with the interaction term, estimates the exposure effect within each level of the modifier as a linear combination of the coefficients, and reports the joint interaction test beside those estimates. It takes one exposure and one modifier at a time, so the interaction is always a two-way one. Rows of the plot and of the table beside it share one scale, in a layout that can follow a journal's house style. The same results go to a self-contained HTML page holding the subgroup estimates, the joint test and the coefficient table. The 'car' package computes the linear combinations and their tests. Models fitted by stats::glm(), stats::lm(), the 'survival' package, the 'lme4' package, the 'geepack' package and the 'survey' package are supported, as is any fit supplying coef() and vcov(). Ordinal outcomes are supported through the 'MASS' package and nominal ones through the 'nnet' package, where the figure carries one row per level of the outcome and the interaction is tested jointly across the equations. Fits from the 'rms' package are refused, naming the function that fits the same model in their place. The estimation of an exposure effect within a level of a modifier, and the test of the difference between such estimates, follow Altman and Bland (2003) and VanderWeele and Knol (2014) ; the reporting of subgroup effects beside the interaction test follows Wang et al. (2007) , and the figure itself the forest plot described by Lewis and Clarke (2001) . License: GPL-3 URL: https://github.com/AkiShiroshita/foresty, https://akishiroshita.github.io/foresty/ BugReports: https://github.com/AkiShiroshita/foresty/issues Encoding: UTF-8 Language: en-GB Depends: R (>= 4.1) Imports: car (>= 3.1.0), checkmate (>= 2.1.0), ggplot2 (>= 3.4.0), grDevices, grid, patchwork (>= 1.1.0), scales (>= 1.2.0), stats, utils Suggests: base64enc, broom (>= 1.0.0), bslib (>= 0.5.0), data.table, geepack, gt (>= 0.9.0), Hmisc, knitr, lme4, MASS, nnet, ragg, rmarkdown, rms, sandwich (>= 3.0.0), shiny (>= 1.7.0), survey (>= 4.1), survival (>= 3.2.0), svglite, tibble, testthat (>= 3.0.0), zip VignetteBuilder: knitr LazyData: true Config/testthat/edition: 3 Roxygen: list(markdown = TRUE) Config/roxygen2/version: 8.0.0 Config/pak/sysreqs: cmake make libicu-dev Repository: https://akishiroshita.r-universe.dev Date/Publication: 2026-09-26 02:16:49 UTC RemoteUrl: https://github.com/akishiroshita/foresty RemoteRef: HEAD RemoteSha: 9755a7fbda9c9293c536136a9f04f59fef2a3eb3 NeedsCompilation: no Packaged: 2026-09-26 07:59:11 UTC; root Author: Akihiro Shiroshita [aut, cre, cph], Yuki Kataoka [aut] Maintainer: Akihiro Shiroshita