Open utterances-bot opened 2 years ago
How about the self document function adds a QR code to lower right corner of plot that links to a gist that is automatically posted to GitHub? Or another option is short URL?
I would probably add comments as strings. Like ggplot(aes(x,y)) + '# Does this' + geom_hist() + '# Does that'
And then setMethod('+', c('ggplot', 'character)) and whatnot.
Self-documenting plots in ggplot2 - Higher Order Functions
Including plotting code as an annotation on a plot
https://tjmahr.github.io/self-titled-ggplot2-plots/