I need to have a long description that is attached to the bottom of my ggplot figure, is left aligned, and preferably I would like to do this directly in the R Markdown file. I am knitting to a PDF. Is there a package that just works for this kind of task?
This is the type of figure I am trying to replicate:

Some things I have tried:
- Using the caption argument of
labs():
ggplot(data, aes(x = x, y = y) +
geom_point() +
labs(caption = "Really long figure description")
This doesn't wrap the text.
- Using
ggpubr::ggarrange:
p <- ggplot(data, aes(x = x, y = y) +
geom_point() +
ggarrange(p, bottom = "Really long figure description")
This also doesn't wrap the text.
- Something like this in the chunk header:
{r, fig.cap = "\\label{fig:myfigure} Here be your caption text"}
generate_a_figue(my_data)
This doesn't change the output at all.
Is there a way to do this that follows the R Markdown ethos of avoiding messing around with LaTeX files?
