inst/examples/fp_set_favors_example.R

data(dfHRQoL)

sweden <- dfHRQoL[dfHRQoL$group == "Sweden", ]
sweden$est <- sprintf("%.2f", sweden$mean)

sweden |>
    forestplot(
        labeltext = c(labeltext, est),
        mean = mean,
        lower = lower,
        upper = upper,
        clip = c(-.1, Inf),
        xlab = "EQ-5D index"
    ) |>
    fp_set_favors(
        low = "worse",
        high = "better",
        txt_gp = gpar(cex = 0.8)
    ) |>
    fp_set_style(
        box = "royalblue",
        line = "darkblue",
        summary = "royalblue"
    )

Try the forestplot package in your browser

Any scripts or data that you put into this service are public.

forestplot documentation built on March 4, 2026, 9:06 a.m.