Skip to content

Commit

Permalink
Vertically align plot with table in g_lineplot (#1153)
Browse files Browse the repository at this point in the history
Fixes #1152
  • Loading branch information
edelarua authored Dec 5, 2023
1 parent 93e729c commit 4c11291
Show file tree
Hide file tree
Showing 4 changed files with 417 additions and 416 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* Remove 25% padding of y-axis in `g_lineplot`.
* Added support for creating multiple risk difference columns, each comparing to a single comparison group. Multiple comparison groups can be specified as a vector via the `arm_y` argument.
* Allowed numeric vector as `count_by` input in `analyze_num_patients` and `summarize_num_patients`.
* Aligned plot and table vertically in `g_lineplot`.

### Bug Fixes
* Fixed bug in `decorate_grob` preventing text wrapping from accounting for font size.
Expand Down
2 changes: 1 addition & 1 deletion R/g_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ g_lineplot <- function(df,
}

# align plot and table
cowplot::plot_grid(p, tbl, ncol = 1)
cowplot::plot_grid(p, tbl, ncol = 1, align = "v")
} else {
p
}
Expand Down
Loading

0 comments on commit 4c11291

Please sign in to comment.