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.
htmlwidgets and R Markdown - RStudio Tutorial
From the course: Creating Reports and Presentations with R Markdown and RStudio
htmlwidgets and R Markdown
- [Instructor] Before getting into how to use htmlwidgets in R markdown, it's important to understand what exactly is a htmlwidget? Htmlwidgets are interactive data visualizations created with R code. There are many different htmlwidget packages, each designed for specific types of data visualization. If interactive data vis are of interest to you, I highly recommend checking out a dedicated htmlwidgets course in our library. I've included in the exercise files two examples of htmlwidgets. Let's go and take a look at them now. So in the exercise files, we'll go to 12_01, and we'll open up that R project. Let's first take a look at our time series htmlwidget. So I'll open this up. I'll select all of a code with command + A, and I'll run the code with Command + Enter. And what I can see in the viewer, which we can zoom in on with Control + Shift + 9, is an interactive time series chart. So I have a tool tip, as I move my cursor along, I can see the actual values through each year, 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.