Get access to all lessons in this course.
-
RMarkdown
- Why Use RMarkdown?
- RMarkdown Overview
- YAML
- Text
- Code Chunks
- Wrapping Up
-
Data Wrangling and Analysis
- Getting Started
- The Tidyverse
- select
- mutate
- filter
- summarize
- group_by
- count
- arrange
- Create a New Data Frame
- Crosstabs
- Wrapping Up
-
Data Visualization
- An Important Workflow Tip
- The Grammar of Graphics
- Scatterplots
- Histograms
- Bar Charts
- color and fill
- scales
- Text and Labels
- Plot Labels
- Themes
- Facets
- Save Plots
- Wrapping Up
-
Wrapping Up
- You Did It!
Fundamentals of R
Wrapping Up
This lesson is locked
This lesson is called Wrapping Up, part of the Fundamentals of R course. This lesson is called Wrapping Up, part of the Fundamentals of R course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Learn More
The sample dashboard shown in the video is here. It is produced with the flexdashboard package.
R for Data Science can be found here. I showed chapter 3 (on data visualization) in the video. The corresponding RMarkdown document is on GitHub here.
Shiny is the package for making interactive web apps. The bus dashboard example is here.
The RMarkdown document that I used to make the slides for this course is here (the slides themselves are here). I made the slides using the xaringan package.
You need to be signed-in to comment on this post. Login.
JULIO VERA DE LEON
March 19, 2022
Hi David, regarding Rmarkdown and Shiny, I understood from your video that it is possible to create a Shiny web app from a Rmarkdown file. Am I right?
Charlie Hadley
March 21, 2022
Hi Julio! It's certainly possible to use {shiny} within an RMarkdown document, here's some example code:
R Markdown
JULIO VERA DE LEON
March 21, 2022
Yes! It helped a lot, thank you.
jeph mathias
September 22, 2022
Saw in your video sometimes using spaces between = and FALSE i.e = FALSE and sometimes not i.e. =FALSE . My code worked with include=FALSE (no space) and warning = FALSE and message = FALSE (spaces) Are both acceptable?
Charlie Hadley
September 23, 2022
Hi Jeph!
We're really lucky in the R language that spaces don't really matter, which means we can use either
some_arg=FALSE
orsome_arg = FALSE
.It's good to have standardised coding styles so that there can be consistency on projects. We recommend the tidyverse style guide which has a specific section on spacing - https://style.tidyverse.org/syntax.html?q=spaces#spacing - but please note that page uses very technical language that isn't necessary to understand right now.
Thanks,
Charlie
Abdulkadir Lokhandvala
April 4, 2023
Hi David, I work with SAS and create lots of macros [equivalent to functions in R] for wider community of programmers in out org. One of the way I can utilize R Markdown is to create the documentation of SAS Macros. I need the help on two things:
David Keyes
April 4, 2023
To change colors, it depends on which output format you're using. Here's some good info that details how to do this in HTML or with LaTeX.
On creating bookmarks, do you mean like creating a table of contents? If so, this will help. If you're thinking of something else, let me know and I'll give you some ideas!