A convenient wrapper used to edit cells of the gtable returned by
dx_plot_forest() with return = "grid".
Examples
dx_obj <- dx(
data = dx_heart_failure,
true_varname = "truth",
pred_varname = "predicted",
setthreshold = .3,
grouping_variables = "Sex"
)
forest <- dx_plot_forest(dx_obj, return = "grid")
# Make the text in the "Male" row red and bold
forest <- dx_edit_cell(
forest,
row = 4, col = 1:5,
gp = grid::gpar(col = "red", fontface = "bold")
)
grid::grid.newpage()
grid::grid.draw(forest)
