visualize\(associations\)forest
visualize association results as a forest plot
Description
Creates a publication-style forest plot for association results stored in a PolyGeniusAssociations object. The layout is: names | table.left | forest | table.right.
table.left and table.right are evaluated against the association result table columns only. Named expressions use their given names as headers; unnamed expressions use their expression text.
Usage
visualize.associations.forest(
results,
rows.by = predictor,
group.by = outcome,
table.left = c(),
table.right = c(),
width = NULL,
row.colors = c("darkgreen", "white"),
shade.tables = TRUE,
row.height = 0.82,
show.reference = TRUE,
...
)
Arguments
results
|
A |
rows.by
|
Unquoted expression selecting the row-label column. Defaults to |
group.by
|
Optional unquoted expression adding grouped header rows. When supplied, a header row is inserted for each group and the row labels are indented beneath it. |
table.left
|
Unquoted expression or |
table.right
|
Unquoted expression or |
width
|
Optional numeric vector giving relative widths for the major layout blocks, in left-to-right order across the blocks that are present: |
row.colors
|
Length-2 character vector giving the alternating row background colors. Colors are internally rendered at 80% transparency. |
shade.tables
|
Logical; if |
row.height
|
Relative row height within the forest layout. Values below |
show.reference
|
Logical; if |
…
|
Reserved for future extensions. |
Value
A patchwork/ggplot object.