Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Created April 1, 2014 15:08
Show Gist options
  • Save nassimhaddad/9916086 to your computer and use it in GitHub Desktop.
Save nassimhaddad/9916086 to your computer and use it in GitHub Desktop.
add footnote to ggplot chart
# source: http://bigdata-analyst.com/best-way-to-add-a-footnote-to-a-plot-created-with-ggplot2.html
library(gridExtra)
g <- arrangeGrob(p, sub = textGrob("Footnote", x = 0, hjust = -0.1, vjust=0.1, gp = gpar(fontface = "italic", fontsize = 18)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment