What is the best way to add a footnote to the end of a graph created with ggplot2? I tried using a combination of the logic noted here , as well as the annotate ggplot2 function.
p + annotate("text",label="Footnote", x=unit(1,"npc") - unit(2, "mm"),y=unit(2, "mm"), just=c("right", "bottom"),gp=gpar(cex= 0.7, col=grey(.5)))
but i get an error
Error in as.data.frame.default (x [[i]], optional = TRUE, stringsAsFactors = stringsAsFactors): cannot convert class c ("unit.arithmetic", "unit") to data.frame
r pdf ggplot2
user338714 Jun 14 '10 at 17:33 2010-06-14 17:33
source share