Description Usage Arguments Details Value Author(s) Examples
This function adds a series of strings as separate lines in the footer of a ggplot figure.
1 | ggfootnote(plot, ..., use_small_text = TRUE)
|
plot |
A ggplot figure |
... |
A series of strings to appear as separate lines in the footer of the figure |
use_small_text |
Logical; should the footnote be set in a smaller font size than the rest of the plot? |
This function does not work with the '+' notation used in ggplot. It should be called after the figure is otherwise complete, as the object returned is no longer a ggplot object and is not directly editable. Nonetheless, it works with ggsave
as any ggplot figure.
A figure with footnotes
Charlie Gibbons
1 2 3 | p <- qplot(carat, price, data = diamonds, color = cut)
ggfootnote(p, "Source: diamonds data distributed with the ggplot package",
"Thanks Hadley!")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.