MarkdownReports
An R function library to generate (scientific) reports easily.
Project maintained by vertesy
Hosted on GitHub Pages — Theme by mattgraham
What is MarkdownReports?
MarkdownReports is a set of R functions that allows you to generate precise figures easily, and create clean reports about what you just discovered with your analysis script. It helps you to:
- Create scientifically accurate figures and save them automatically as vector graphic (.pdf), that you can use from presentation to posters anywhere.
- Note down your findings easily in a clear and nicely formatted way, parsed from your variables into english sentences.
- Link & display your figures automatically inside your report, right there where they are needed.
- Version your findings, annotating which parameters were used to reach certain results.
- Share your report with others via email, Github or a personal website.
Why did I make it & why might you like it?
I do exploratory data analysis as a daily routine, and I have constant interaction with all sorts of people: supervisors, collaborators, colleagues, etc.
I often have to...
- ...write emails summarizing the results (text & figures) of the last few days.
- ...find back results a couple of month back, with all tiny details (parameters used, etc).
- ...assemble each step I did that day into a logical story line, that others can understand at first glimpse, e.g.: I observed X; I controlled for Y; Hypothesized explanation A; Falsified it; Came up with explanation B; Tested & proven it...
For all of the above, my solution is MarkdownReports. I think its better than other solutions I found. Many of those like to combine source code with results, and many are too complex to use. Most of people I interact with are not interested in the source code, but are very keen on seeing my results from all possible angles and are asking detailed questions about the analysis.
Where does MarkdownReports stand out?
- Pure markdown output, simple and elegant layout.
- Handy integration of text with figures (linked to an external file & displayed: makes manual tailoring easy)
- Easy generation of precise figures (axis labels, etc) that are saved as a vector graphic (pdf), making it scalable for presentations, posters, etc
- The report file is automatically named after the R-script, so that it is linked to the source code that generated it.
- A timestamped subdirectory is created that you can backup once satisfied with your results.
- The generated report is easy to share on a GitHub wiki.
- It natively exports tables from R to Markdown
- It is all achieved in ~ 400 lines of well commented code.
Installation
Install directly from GitHub via devtools with one R command:
devtools::install_github(repo = "vertesy/MarkdownReports/MarkdownReports")
...then simply load the package:
require("MarkdownReports")
Discover 4 Yourself!
Learn about the markdown format
MarkdownReports is a project of @vertesy.
edit the website