-
Notifications
You must be signed in to change notification settings - Fork 10
R Markdown Resources
A place to share R Markdown resources.
You can use an R Markdown file as a notebook to keep track of your analyses, or as a way to generate reports, interactive documents, dashboards, websites, and more. R Markdown files are text files that can contain: chunks of code, text (e.g. notes to yourself or to others about the code), and metadata about the final appearance of the file. Here is one example: NYT Interactive Graphic
Here's a great intro and video if you're unfamiliar with Rmarkdown: Introduction from RStudio
Note: R Markdown can be helpful as you learn or master R, but it is also not necessary in order to learn R. Whether or when you incorporate R Markdown in your learning process is a matter of personal choice. Some R teachers prefer to teach R Markdown before students even touch R, and others are seasoned R programmers who don't use it themselves. It's up to you! If learning R and the various different visualizations and statistics seems overwhelming, then giving R Markdown a look might be worthwhile.
RStudio Gallery shows templates and examples for different Rmarkdown files.
RStudio Formats contributed by @economicurtis: "I'm in a field (academic econ) where some will judge you if your paper isn't in latex and your presentation isn't in beamer, so the doc references on this page is quite useful to get everything the way you want it to look"
R Markdown section from the knitr tutorial by Karl Broman contributed by @floresf
Using R Markdown for Class Reports contributed by @alevy
Suggestions by @christina.maimone:
Creating Dynamic Documents with RMarkdown and Knitr by Marian L. Schmidt
RMarkdown for writing reproducible scientific papers >by Mike Frank & Chris Hartgerink
RMarkdown from Penn State Stat 485: video tutorials on >RMarkdown
Reproducible Research Using RMarkdown and Git through RStudio by Marian L. >Schmidt
RMarkdown magic is made possible by
knitr
from Yihui Xie
Suggestions by @andrea:
knitr
site by Yihui Xie. This has already been shared by @christina.maimone, but for people who are in a hurry and can't/won't go through the whole site, theoptions
page https://yihui.name/knitr/options/ is probably the most useful of my RMarkdown resources- the RMarkdown files of #rstats experts I know : their GitHub repositories often contains great examples of good . Rmd tricks. Here is a non-exhaustive list of experts whose repositories contain nice RMarkdown examples:
- Hadley Wickham https://github.com/hadley
- Yihui Xie https://github.com/yihui
- Mara Averick https://github.com/batpigandme
- David Robinson https://github.com/dgrtwo
- Bob Rudis https://github.com/hrbrmstr
- Jenny Brian https://github.com/jennybc
- David Smith https://github.com/revodavid
- Tristan Mahr https://github.com/tjmahr
- Reproducible Research slides by Jeff Leek https://github.com/jtleek/modules/tree/master/05_ReproducibleResearch
- Garrett Grolemund's DataCamp course https://www.datacamp.com/courses/reporting-with-r-markdown
- videos by Roger D. Peng of John Hopkins University, such as https://www.coursera.org/learn/reproducible-research/lecture/MH4hj/r-markdown-demonstration