Skip to content

How to combine mulitipanelplot objects into 1 page and label them A, B, C ...? #135

Answered by jarbet
jarbet asked this question in Q&A
Discussion options

You must be logged in to vote

Although I have used cowplot::plot_grid in the past to combine figures and label them (e.g. a,b,c,d), I recently ran into a scenario where this did not work and I needed to use create.multipanelplot to combine the figures instead.

I can confirm that @stefaneng's above approach works very well! I've simplified it a bit below:

Labeling sub-plots when using create.multipanelplot:

  1. Make your bpg plots
  2. Make sure the class of each plot is correct, e.g.:
class(plot1.mpp) <- c('frame', 'gTree', 'grob', 'gDesc');

Note if the plots you are combining are each multipanelplots, then you need to add class multipanelplot above

  1. Add the labels to each plot, e.g.:
plot1.anno.mpp <- placeGrob(plot1.mpp,…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jarbet
Comment options

jarbet Jul 11, 2023
Maintainer Author

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

jarbet
Sep 28, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by jarbet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants