O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building Interactive Graphs with ggplot2 and Shiny

Video Description

Build stunning graphics and interactive visuals for real-time data analysis and visualization with ggplot2 and Shiny

About This Video

  • Generate complex interactive web pages using R and produce publication-ready graphics in a principled manner

  • Use aesthetics effectively to map your data into graphical elements

  • Customize your graphs according to your specific needs without wasting time on programming issues

  • In Detail

    Ggplot2 is one of R's most popular packages, and is an implementation of the grammar of graphics in R, which is a powerful tool for performing statistical analyses and drawing publication-quality graphics.

    This course helps you move beyond the default graphics offered by R and shows you how to start making elegant and publication-ready plots. It equips you with a good command over ggplot 2 to build sophisticated and interactive graphs that suit your own data requirements.

    This practical course shows you how to build statistical plots layer by layer by following along with the examples provided. You'll first get familiar with the basics of ggplot2 by understanding the use of the building blocks of standard statistical plots and see how you can combine elements to make new graphics. Next, you'll learn how to customize your graphs, and finally you'll explore how to make interactive webpages to present your work or analyze your data.

    Table of Contents

    1. Chapter 1 : Getting Started with ggplot2
      1. Setting Up ggplot2 00:02:51
      2. Understanding the Structure of a Plot 00:03:21
      3. Mapping Data to Graphical Elements with Aesthetics 00:03:01
      4. Understanding Some Subtleties with Aesthetics 00:03:01
      5. Using ggplot2 in Scripts 00:02:47
    2. Chapter 2 : Understanding Basic Plots
      1. Drawing Lines 00:02:28
      2. Drawing Paths 00:01:46
      3. Bar Charts 00:02:00
      4. Histograms and Density Plots 00:02:48
      5. Using Boxplots 00:02:33
    3. Chapter 3 : Using Conditional Plots
      1. Using Group and Color 00:02:07
      2. Using Size and Color 00:01:57
      3. Over Plotting Many Points with Jitter 00:02:07
      4. Faceting with One Variable 00:01:39
      5. Faceting with Two Variables 00:01:44
    4. Chpater 4 : Using Statistics in Our Plot
      1. Linear Trends 00:01:56
      2. Non-linear Trends 00:01:54
      3. User-Defined Function 00:01:47
      4. BigVis: Visualizing Big Data 00:02:10
      5. BigVis: Smoothing Plots and Peeling Data 00:02:05
    5. Chapter 5 : Customizing Your Graphs
      1. Controlling the Axes 00:02:19
      2. Ordering Variables 00:01:55
      3. Customizing the Color Palette for Categorical Variables 00:02:01
      4. Customizing the Color Palette for Continuous Variables 00:02:49
      5. Customizing the Axes Labels and the Legends 00:02:17
    6. Chapter 6 : Customizing Your Graphs
      1. Creating Interactive Web Pages with Shiny 00:01:48
      2. Understanding the Structure of a Shiny App 00:03:53
      3. Rendering Text 00:02:46
      4. Understanding Reactive Programming 00:03:54
      5. Using a Button to Avoid Frequent Updates 00:02:18
    7. Chapter 7 : Shiny – Part 2
      1. Creating and Using Tabs 00:02:11
      2. Scoping 00:02:52
      3. Uploading a File 00:02:03
      4. Downloading a File 00:02:15
      5. Sharing Your Work 00:03:06
    8. Chapter 8 : Putting Everything Together
      1. Designing an Interactive Dashboard 00:02:11
      2. Building a Time Series Plot 00:02:39
      3. Making a Bubble Chart in ggplot2 00:02:18
      4. Making Conditional Panels 00:02:27
      5. Building the Dashboard 00:02:44