tjmahr / tjmahr.github.io

A responsive Jekyll theme with clean typography and support for large full page images.
https://tjmahr.github.io
MIT License
9 stars 8 forks source link

self-titled-ggplot2-plots/ #9

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

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/

markbneal commented 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?

drvictorvs commented 1 year ago

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.