Customizing the report

Reporting with R Markdown

Amy Peterson

Head of Core Curriculum at DataCamp

Specifying element style

Markdown file with style elements

  • color
  • background-color
  • font-family
  • font-size
Reporting with R Markdown

Document style

Modifying the document text color

Markdown file with red text

Reporting with R Markdown

Using color hex codes

Modifying the document text color, background color, and font

Markdown file with modified text color, background color, and font

Reporting with R Markdown

Code chunks

Modifying code chunk style

Markdown file with modified code chunk style

Reporting with R Markdown

The table of contents

Modifying table of contents style

Markdown file with modified table of contents

Reporting with R Markdown

The header

Modifying the header style

Markdown file with modified header

Reporting with R Markdown

The title, author, and date

Modifying the style of the title, author, and date

Markdown file with modified title, author, and date

Reporting with R Markdown

CSS file

YAML header with reference to CSS file

CSS file

Reporting with R Markdown

Let's practice!

Reporting with R Markdown

Preparing Video For Download...