Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add title and footnote to final plots #273

Open
SHAESEN2 opened this issue Oct 14, 2021 · 0 comments
Open

Add title and footnote to final plots #273

SHAESEN2 opened this issue Oct 14, 2021 · 0 comments
Labels
enhancement New feature or request idea To post an idea for a new plot

Comments

@SHAESEN2
Copy link
Collaborator

We should be able to add footnotes and captions to the final plots. Taking into account that most of the plots might be a result of cowgrid::plot_grid, we could explore some options. One of them could be (although it is not easy to customize):

title <- cowplot::ggdraw() +
cowplot::draw_label(
"KM plot for Time to First Dermatologic Event: Safety population\n",
fontfamily = "sans",
fontface = "bold",
size=10
)

caption <- cowplot::ggdraw() +
cowplot::draw_label(
"\nProgram: tlf_kmplot.Rmd [14OCT2021 10:00]",
fontfamily = "sans",
size=10
)

KM <- cowplot::plot_grid(
title, KM, caption,
ncol = 1,
rel_heights = c(0.1, 0.8,0.1)
)

@SHAESEN2 SHAESEN2 added enhancement New feature or request idea To post an idea for a new plot labels Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea To post an idea for a new plot
Projects
None yet
Development

No branches or pull requests

1 participant