Skip to content

Commit

Permalink
fix theme for table when ybrake_ylabel is true
Browse files Browse the repository at this point in the history
  • Loading branch information
certara-smouksassi committed Dec 23, 2024
1 parent ea357cc commit 5c7fd12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/forest_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,11 @@ forest_plot <- function(
axis.ticks.y = ggplot2::element_blank()
)
}
if (show_table_yaxis_tick_label && break_ylabel) {
table_plot <- table_plot +
ggplot2::scale_y_discrete(labels = label_wrap(y_label_text_width))
}

if (!reserve_table_xaxis_label_space) {
table_plot <- table_plot +
ggplot2::theme(
Expand Down Expand Up @@ -1196,10 +1201,6 @@ forest_plot <- function(
)
}

if (break_ylabel) {
table_plot <- table_plot +
ggplot2::scale_y_discrete(labels = label_wrap(y_label_text_width))
}
}
}

Expand Down
1 change: 1 addition & 0 deletions coveffectsplot.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: af89a8b6-fa96-48f1-b838-7186622fcd5f

RestoreWorkspace: Default
SaveWorkspace: Default
Expand Down

0 comments on commit 5c7fd12

Please sign in to comment.