Extensions are added to DataTables via the extensions argument. FixedHeader is useful for fixing column headings to the top of a page. Responsive will automatically collapse columns that won't fit in the window.
- [Instructor] Responsively designed web content…reflows or reformats itself dependent…on the width of your browser window.…It's a very flexible way of designing websites…or web applications to work…across desktop and mobile devices.…The DT Library provides a very simple method…for creating responsive tables.…Let's have a look at that.…I'll open up my interactive-table.R file.…Minimize my environment because I don't need to see it.…At the top of the script file,…we load the tidyverse library, then we load the DT library…so we can make our interactive tables,…and finally, the stringr library…so we can create pretty headers very easily.…
Line five, I import my data using read_csv,…and I create some pretty headers by using gsub…and a str_to_title function from stringr.…Then on line 10 through 16,…I create myself an interactive data table.…As you can see, there are many columns on this data frame…which are over to the right-hand side,…and I need to scroll to access them.…It'd be really nice if we could make it…so that the columns which don't fit on the screen,…
AuthorMartin John Hadley
Start by learning to manage packages and structure data for visualizations with the tidyverse and the pipe operator. Then there is an important question: Which library should you choose? The course introduces five popular options: Leaflet, Plotly, Highcharter, visNetwork, and DataTables (DT). Instructor Martin Hadley shows how to use these libraries to create scattergeo, choropleth, and geolines maps; stacked bar charts, scatter charts, bubble charts, and heat maps; treemaps and time series charts; interactive networks and graphs; and responsive, interactive data tables. Plus, learn how to customize your visualizations with legends and tooltips, and extract click information for Shiny apps.
- Installing htmlwidgets
- Selecting the best htmlwidget
- Creating interactive maps with Leaflet
- Creating interactive charts with Plotly and Highcharter
- Creating interactive networks with visNetwork
- Creating interactive tables with DT
Skill Level Intermediate
Data Visualization Tips and Trickswith Matt Francis2h 14m Intermediate
DC.js for Data Science Essential Trainingwith Emma Saunders5h 3m Intermediate
1. Getting Started with htmlwidgets
2. Creating Interactive Maps with Leaflet
3. Creating Interactive Charts with Plotly
4. Creating Interactive Charts with Highcharter
5. Creating Interactive Networks with visNetwork
6. Creating Interactive Tables
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.