Combining GGPLOT2 image and gt table output in one plot


I am trying to merge a ggplot line plot and an output table from gt() . I can't any examples of how to do that. My question to this forum is, would it be possible to combine a ggplot and output table from the gt() into one plot?


See the FAQ: How to do a minimal reproducible example reprex for beginners; specific code clarifies the issues and encourages more answers.

The default solution is geom_text, but that is likely to be unsatisfactory if the table is any usable size. A better solution depends on the target output format. For example, it's possible to place a over the table in a pdf.

If you aren't tied to gt, take a look at ggtexttable

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.