11  Non-bold row labels

Any row labels without an estimate (such as row label sub-headings and those missing an estimate) are formatted as bold. For example, the “Sex” and “Age (years)” sub-headings as well as the “Women” row label in this plot:

row_labels <- data.frame(
  subgroup = c("men", "women",
               "35_49", "50_64", "65_79"),
  group    = c("Sex", "Sex",
               "Age (years)", "Age (years)", "Age (years)"),
  label    = c("Men", "Women",
               "35 - 49", "50 - 64", "65 - 79")
)

forest_plot(my_results,
            col.key = "subgroup",
            row.labels = row_labels)

This is because forest_plot() automatically adds ** around such labels. If you do not want such a label to appear bold, then the pattern "\u200B**label**\u200B" can be used.*

For example, the “Sex” and “Women” row labels in this plot:

row_labels <- data.frame(
  subgroup = c("men", "women",
               "35_49", "50_64", "65_79"),
  group    = c("\u200B**Sex**\u200B", "\u200B**Sex**\u200B",
               "Age (years)", "Age (years)", "Age (years)"),
  label    = c("Men", "\u200B**Women**\u200B",
               "35 - 49", "50 - 64", "65 - 79")
)

forest_plot(my_results,
            col.key = "subgroup",
            row.labels = row_labels)

* This puts a bold zero-width space either side of the row label.