Building Interactive Graphs with ggplot2 and Shiny

Build stunning graphics and interactive visuals for real-time data analysis and visualization with ggplot2 and Shiny
4.0 (11 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
100 students enrolled
$19
$85
78% off
Take This Course
  • Lectures 40
  • Length 1.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 12/2014 English

Course Description

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.

About the Author

Christophe Ladroue has many years of experience in machine learning and statistics. Most of his work has been focused on developing tools for the analysis of biological data, from genetics to physiology, and his scientific publications span from medical journals to pure statistics. He has used and has been teaching R and ggplot2 for a few years and he occasionally posts related articles on his personal blog

What are the requirements?

  • Following an example-driven approach, this course offers a practical way to learn how to build interactive graphs with ggplot 2 and Shiny with the help of easy-to-understand examples and step-by- step instructions.

What am I going to get from this course?

  • Create interactive web pages and combine elements to produce sophisticated graphs
  • Make basic statistical plots (lines, paths, bar plots, histograms, and boxplots) with ggplot 2
  • Combine graphical elements and put more information on your plots
  • Address big data by plotting summary plots very quickly
  • Customize your plots to your own style and requirements
  • Understand reactive programming in Shiny for building interactive web pages
  • Get to grips with scoping and make your code more efficient
  • Publish and share your work

What is the target audience?

  • If you are a software programmer, application developer, or web developer with basic to intermediate knowledge of R programming and you want to build elegant graphs to display data that you can showcase to your clients, this course is for you.
  • No knowledge of web technologies is required.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Getting Started with ggplot2
02:50

ggplot2 is not installed by default. A simple command allows you to install it. The free editor, RStudio, should also be installed. It'll be necessary when the manipulate package is presented.

03:21

ggplot2 plots do not rely on one plot function, but are built incrementally layer by layer.

03:01

Graphical elements can be controlled by either aesthetics or parameters. The difference can appear confusing at first.

03:01

A typical error when using ggplot2 is to use the concepts of mapping and setting aesthetics together. We clarify these two concepts with a simple example.

02:47

A ggplot object in a script will not produce a plot unless an explicit call to print() is made.

Section 2: Understanding Basic Plots
02:28

Data like quantity evolving through time are often presented with a connected line.

01:46

It's often of interest to draw paths on the plane, for example, to draw the movement of a particle.

02:00

Bar charts show the composition of your data against a certain criterion.

02:47

Histograms and density plots show the whole distribution of a quantity.

02:33

Boxplots show a visual summary of your data for easy comparison.

Section 3: Using Conditional Plots
02:28

Use more than two variables on your plot.

01:57

Use more than 2 variables on your plot.

02:06

Multiple data points having the same values hide each other. Move them about a bit to see them all.

01:39

Many graphs on one plot can be confusing. Put them all in their own subplots.

01:43

Many graphs on one plot can be confusing. Put them all in their own subplots.

Section 4: Using Statistics in Our Plot
01:56

It might be difficult to see a trend in the data with lots of points on a plot. Draw a fitting curve to see the trend more clearly.

01:53

Given what you know about the data, you might want to fit a specific model.

01:46

You might want to check the data against particular values. Add whichever function you want on top of the plot.

02:10

Very large datasets must be summarized before they are plotted. A dedicated package makes it very easy.

02:04

Extreme values are bound to occur in very large datasets and produce misleading plots. Learn how to remove them automatically.

Section 5: Customizing Your Graphs
02:18

Plot on a log scale. Investigate an extract of the plot.

01:54

Change the order of the variables to something more appropriate than the default.

02:01

Change the default colors to get a better contrast or convey an idea.

02:48

Change the default colors. Investigate only a range of values by using multiple gradients.

02:17

Customize the axis labels and the legend titles. Flip both axes to help readability.

Section 6: Shiny – Part 1
01:48

Create an interactive web page in R with Shiny. Firstly, install Shiny.

03:53

Understand how a Shiny app is structured.

02:46

Add textual reports to your webpage: free text, function outputs, and tables.

03:54

Shiny is based on the concept of reactive programming.

02:18

Control the updating of reports by using a submit button.

Section 7: Shiny – Part 2
02:10

A report can be composed of semantically different elements and can also get quite busy. Use tabs to separate parts of the reports and get a cleaner interface.

02:52

A good understanding of scoping can lead to great improvements in user experience.

02:03

If a user wants to, they can upload their own data to the Shiny app.

02:15

Suppose a user wants to save the results in a file. Add a Download button for such situations.

03:06

Let others use your interactive report on their machine, or share your report on the Internet.

Section 8: Putting Everything Together
02:10

Let the user explore their data with interactive plots and reports.

02:39

Let the user choose a variable and plot its evolution through time automatically.

02:18

Make a bubble chart in ggplot2. Turn it into a motion chart with Shiny.

02:27

Make the user interface adapt to different situations.

02:44

We have built the important components of our dashboard separately. Let's put them together.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Packt Publishing, Tech Knowledge in Motion

Over the past ten years Packt Publishing has developed an extensive catalogue of over 2000 books, e-books and video courses aimed at keeping IT professionals ahead of the technology curve. From new takes on established technologies through to the latest guides on emerging platforms, topics and trends – Packt's focus has always been on giving our customers the working knowledge they need to get the job done. Our Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.

Ready to start learning?
Take This Course