Skip to content

Add option to use {gt} and {patchwork} for y-axis table #6

Open
@craig-parylo

Description

@craig-parylo

The current approach to multi-level y-axis with group | level | label_or depends on facet_ by group and level with the or as the y-axis. This appears to be the best way to achieve these results with built-in {ggplot2} functions and should be maintained.

Another approach would involve creating a {gt} table to hold the details of the group, level and or as columns, then using {patchwork} to bind the table to the left-hand side of a OR plot instead of labelling y-axis using facet_.

This would enable additional formatting options for the y-axis labels, such as alternate (or conditional) colours, italics, shading and so on. Another benefit would be the ability to selectively display / hide specified columns - for example omit the label_or column and keep just the group and level variables. A third benefit would be an option to output OR table summaries with group, level, and details such as rows, OR, CI, p-value and significance category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions