[This article was first published on Blog – The R Graph Gallery, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
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.
To leave a comment for the author, please follow the link and comment on their blog: Blog – The R Graph Gallery.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.