Skip to content

Commit

Permalink
cowplot or patchwork
Browse files Browse the repository at this point in the history
  • Loading branch information
martaalcalde committed Dec 12, 2024
1 parent 6f3702f commit 146d8c9
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions inst/shiny/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ browser()
axis.text.x = element_text(),
panel.grid.major.x = element_line(color = "grey90"),
legend.box = "horizontal",
axis.text.y = ggplot2::element_blank(),
# axis.text.y = ggplot2::element_blank(),
axis.title.y = ggplot2::element_blank(),
legend.position = "bottom",
legend.title = ggplot2::element_blank()
Expand Down Expand Up @@ -1369,13 +1369,19 @@ browser()
limits = c(0, max_percent))
age_pyramid_male <- age_pyramid_male |> addPyramidTheme("#003153")

age_pyramid_female +
age_labels_plot +
age_pyramid_male +
plot_layout(
widths = c(7.5, 1, 7.5)
)

# cowplot::plot_grid(age_pyramid_female,
# # age_labels_plot,
# age_pyramid_male,
# ncol = 3,
# rel_widths = c(6,6))
#
#
# plot <- age_pyramid_female +
# age_labels_plot +
# age_pyramid_male +
# plot_layout(
# widths = c(7.5, 1, 7.5)
# )

})

Expand Down

0 comments on commit 146d8c9

Please sign in to comment.