View source: R/gg_figure_caption.R
gg_figure_caption | R Documentation |
Add an auto-numbered caption to a ggplot.
gg_figure_caption( caption, supplemental = FALSE, s.numbers = FALSE, caption.width = 98 )
caption |
A string containing the caption text. |
supplemental |
Is this a supplemental figure? Defaults to FALSE. |
s.numbers |
If it is a supplmental figure, how to you want it formatted: "Supplemental Figure 1" (FALSE) or "Figure S1" (TRUE)? Defaults to FALSE. |
caption.width |
A positive integer giving the target column for wrapping lines in the output. Defaults to 98 |
ggplot2::labs
, figure.caption
, supp.fig.caption
data(example_data) ggplot(example.data, aes(x = X, y = Y)) + geom_point() + gg_figure_caption(caption = "This is a figure")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.