Pimp my RMD: a few tips for R Markdown
This article is originally published at https://www.r-graph-gallery.com
R markdown creates interactive reports from R code. I’ve created a document that provides a few tips I use on a daily basis to improve the appearance of my html outputs (my memory aid). This document is built using R Markdown and hosted on Github.
You can access it here, and here is a list of the current tips that are displayed:
- Text formating
- Horizontal line
- Chapter auto numbering
- Skip a line
- Center an image
- Add footer or header
- Add space before title
- Add caption to your figures
- Custom caption
- Insert equations
- 2 figures in 2 columns
- Use buttons or tabs for sub-chapters
- Use DT for tables
- Hide code
- Highlight a piece of text with CSS
- Cache code
- Add a github link in the corner of your document
- Internal link
- URL linking to a specific section
- Use interactive graphics
- Use a template
- Share it online
- Compile several in a website
- Create template
- Add a session info
Of course this list is not exhaustive. If you know some tips that should be added, please advise me! You can comment this post or use the dedicated GitHub repository.
This page is linked with the R graph gallery. You can also reach me on twitter. Thanks to Rstudio and to the people who contributed to create such an awesome tool.
Thanks for visiting r-craft.org
This article is originally published at https://www.r-graph-gallery.com
Please visit source website for post related comments.