Apologies that I am raising issue here about what's clearly a question that needs answering. I had raised this on RStudio community but didn't get any response, so decided to raise issue here.
I am trying to write unit tests for custom functions where I use cowplot::plot_grid() to combine ggplot2 plots. For example,
Apologies that I am raising issue here about what's clearly a question that needs answering. I had raised this on RStudio community but didn't get any response, so decided to raise issue here.
I am trying to write unit tests for custom functions where I use
cowplot::plot_grid()
to combineggplot2
plots. For example,For
ggplot2
plots, I can build the plot and extract these details for tests.But how can I extract such details about the individual plots from the combined plot-
So, for example, how can I extract
subtitle
forp1
frompb
?Created on 2018-12-22 by the reprex package (v0.2.1)