Skip to content

Commit

Permalink
Fix CRAN note
Browse files Browse the repository at this point in the history
  • Loading branch information
Monika-H committed Mar 18, 2024
1 parent e451ffa commit 9af72cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/winOddsPlots.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ cumulative_plot.maraca <- function(x, theme = "maraca",
plot_bar <- .create_bar_plot(wo_bar, theme, reverse)
plot_forest <- .create_forest_plot(wins_forest, theme, include, reverse)

plot <- patchwork:::"|.ggplot"(plot_bar, plot_forest) +
patchwork::plot_layout(widths = c(2.5, 1), nrow = 1)
plot <- patchwork::wrap_plots(plot_bar, plot_forest,
nrow = 1, widths = c(2.5, 1))

# Add class to plot - cumulativePlot
class(plot) <- c("cumulativePlot", class(plot))
Expand Down

0 comments on commit 9af72cd

Please sign in to comment.