From the course: Creating Reports and Presentations with R Markdown and RStudio
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Styling HTML reports in R Markdown - RStudio Tutorial
From the course: Creating Reports and Presentations with R Markdown and RStudio
Styling HTML reports in R Markdown
- [Man] Okay, so let's see how we can customize the styles in our HTML reports. We're going to go to our exercise files and open 10_02, and we'll open up our RStudio project. Let's open the RMD file, and we'll knit it together, so we can see how our report currently looks. Okay, so, it's a pretty bare-bones report, there's a header here, there's some text, there's a table, there's another heading, and we can see some more text and a figure with a caption. We're going to apply two different styles to our document. One, company styles, so, I'm going to imagine that I'm running a company, and I want all my reports to look a certain way, and I'll also supply styling to the captions as well. Let's start with our company styles first, so, I'll go back to RStudio. It's a convention to provide CSS files in a folder called www, so let's do that, I'll create a new folder, I'll call it www, and I'll hit OK. And, we want to create our first CSS file, which we do by going to File, New File, and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.