Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
R: Data Visualization with R - A Complete Guide!: 3-in-1
Rating: 4.3 out of 5(23 ratings)
161 students

R: Data Visualization with R - A Complete Guide!: 3-in-1

Advanced visualization techniques in R to visualize 2D and 3D interactive plots!
Last updated 10/2018
English

What you'll learn

  • Deepen your knowledge by adding bar-charts, scatterplots, and time series plots using ggplot2.
  • Create a fully-featured website using Shiny with real-time features such as adding and controlling functionalities.
  • Create simple and quick visualizations using the basic graphics tools in R.
  • Introduce users to basic R functions and data manipulation techniques while creating meaningful visualizations.
  • Add elements, text, animation, and colors to your plot to make sense of data.
  • Perform predictive modeling and create animated applications.

Course content

3 sections104 lectures7h 28m total length
  • The Course Overview5:31

    This video provides an overview of the entire course.

  • Preview of R Plotting Functionalities3:15

    Creating professional looking plots, both static and interactive, may seem hard; however, with R we can create and fully customize plots with a few lines of code.

       •  Use ggplot2 that can produce beautiful plots with a few lines of code

       •  Plots are fully customizable; to obtain perfect plots every time, use customizable plots.

       •  Create complex results using interactive plots

  • Introducing the Dataset3:21

    Often, beginners fail to properly understand their dataset before analyzing it. However, a good understanding of the origin and structure of the data is of primary importance.

       •  Introduce the data provider, that is, EPA.

       •  Understand the EPA network of stations

       •  A detailed description of the data structure

  • Loading Tables and CSV Files4:41

    It is not always good to import data in R using the default settings. For doing it successfully, several parameters need to be set.

       •  Set the working directory

       •  Understand the important setting of the function read.table

       •  Import the data and check the structure

  • Loading Excel Files3:33

    Importing Excel tables in R may be tricky. However, with the right explanation the proper package can be installed and everything should work out fine.

       •  Install the package xlsx

       •  Understand the format of the code to import Excel files

       •  Import and check the data

  • Exporting Data4:18

    Exporting data in R may seem difficult, since we have many options to choose from. However, R has powerful exporting functions that with few options can do the job successfully.

       •  Firstly, we need to subset our data to have something to export

       •  Then, we can learn how to export data in R

       •  The final step would be exporting data into multiple Excel sheets

  • Creating Histograms5:01

    Producing elegant plots in ggplot2 may seem difficult but it is actually quite easy to do. In fact, ggplot2 takes care, by default, of most of the graphical design of the plot, meaning that we can produce beautiful histograms with just a few lines of code.

       •  Load ggplot2 and then import the dataset

       •  Plot a simple histogram, using the default settings.

       •  Plot multiple distributions with faceting

  • The Importance of Box Plots3:44

    Histograms are useful for certain tasks, but for comparing several variables at once they are not the best. Box plots can be used instead, since they allow the comparison of the distribution of multiple variables side by side.

       •  Explain what a box plot is and what does it represents

       •  Create multiple box plots with just two lines of code

       •  Order the plot to achieve better results

  • Plotting Bar Charts2:43

    Categorical variables are invariably difficult to visualize in meaningful ways. Bar charts are important for plotting categorical variables and defining their characteristics.

       •  Learn bar charts

       •  Create simple bar charts in ggplot2

       •  Learn how to automatically order a data.frame and plot ordered bar charts

  • Plotting Multiple Variables – Scatterplots3:06

    In many cases, we are interested in comparing multiple variables at once and checking their correlation. Scatterplots allow us to do just that and are an important tool in a data analyst's toolbox.

       •  Describe the importance of scatterplots

       •  Create simple scatterplots in ggplot2

       •  Create more complex visualization by tweaking some basic options

  • Dealing with Time – Time-series Plots2:38

    In many cases, the variable time is underestimated. However, time-series are extremely useful to determine the temporal pattern of a variable.

       •  Understand the structure of time-series plots

       •  Plot a simple time-series plot in ggplot2

       •  Customize the plots with color and size

  • Handling Uncertainty4:14

    Many datasets are affected by uncertainty and people not always know how to show this in plots. This video will present ways to solve this and take uncertainty into account.

       •  Understand how to handle uncertainty

       •  Present simple ways to include uncertainty in bar-charts

       •  Present the scatterplots with double error bars

  • Changing Theme3:06

    By default, ggplot2 creates plots with a grayish background, and without axes lines and white gridlines. This is not the standard look you normally find in scientific manuscripts.

       •  Explain the graphical elements of the standard theme

       •  Change the default theme

       •  Explore the differences between the default theme and the others

  • Changing Colors3:19

    The default color scale is not always appropriate to spot all the differences in the data we are trying to plot. In many cases, we have to change it so that our plots can become more informative.

       •  Change the default two colors for plotting continuous variables

       •  Explore ways to include more colors in the color scale

       •  Present discrete color scale for categorical variables

  • Modifying Axis and Labels2:40

    ggplot2 uses the names of the columns as labels, meaning that if these are not self-explanatory, the plot will not provide a good framework to understand its meaning. By adding some lines of code, we can customize the plot in order to change the labels and make it clearer.

       •  Add a title for the plot

       •  Change the title of the legend

       •  Change the axes labels

  • Adding Supplementary Elements4:08

    The default plots created by ggplot2 lack several elements that in many cases are useful to provide additional information to viewers. However, there are simple functions that can be used to add supplementary elements to the plot.

       •  Add the trend lines to scatterplots

       •  Learn how to add vertical and horizontal lines to plots

       •  Customize the lines

  • Adding Text Inside and Outside of the Plot5:02

    In many cases, it is crucial to be able to include textual labels on plots to provide viewers with additional information. This can be done in ggplot2 in both static and dynamic ways.

       •  Add fixed text labels

       •  Add dynamic textual labels

       •  Add text outside the plot and change the axis labels

  • Multi-plots3:59

    With the function facet_wrap, it is only possible to create a grid of plots of the same type. However, in some cases, it is necessary to create side-by-side graphs with diverse plots. This can be done in the package gridExtra.

       •  Review the facet_wrap function

       •  Install the gridExtra package

       •  Create the multi plots

  • Exporting Plots as Images3:24

    We could easily save our plots as images directly from R Studio. This way of saving however, does not provide much flexibility. If we want to customize our images, we need to learn how to export plots from the R code.

       •  Create an object with the plot we want to save

       •  Learn the basics of the ggsave function

       •  Change the size of the image

  • Adjusting the Page Size2:32

    The default size that ggplot2 uses to save plots is ideal for most of our needs, such as embedding plots in Word documents. However, in some cases, we may need to specify a particular page size for our plots, which can be easily done with the option paper.

       •  Specify the page size

       •  Rotate the page

       •  Specify other options

  • Getting Started with Interactive Plotting2:44

    Static plots are the standard for publishing in traditional media, such as journal papers. However, the world is moving towards an internet-based presentation of results and even scientific journals are quickly adapting it. Many now offer the possibility of including interactive plots. In R, we can create plots for the Web with the rCharts package, which is a bit more difficult to install than ggplot2.

       •  Explain the rCharts package

       •  Install devtools

       •  Install rCharts from GitHub

  • Creating Interactive Histograms and Box Plots4:55

    rCharts features a syntax more similar to standard plotting in R than what we saw with ggplot2. However, it is easy to pick up by showing simple examples and then including additional details.

       •  Explain the syntax of rCharts

       •  Include more details

       •  Add JavaScript functions for more flexibility

  • Plotting Interactive Bar Charts3:12

    Even though we know nothing about HTML and CSS, we can still obtain beautiful bar-charts using templates created by other users.

       •  Plot basic interactive bar charts

       •  Add axis labels

       •  Use a template for an elegant finish

  • Creating Interactive Scatterplots2:58

    If too many data points are present in our dataset, scatterplot visualization may become very confusing in static plots. However, in interactive plots this limitation no longer applies, since we can select to visualize only some datasets.

       •  Create basic interactive scatterplots

       •  Understand the interactivity

       •  Add elements and controls

  • Developing Interactive Time-series Plots and Saving3:47

    Time-series plots are a great way to visualize the temporal pattern of a variable. However, sometimes we cannot fully understand the exact date of each point based only on the values on the x axis. Interactive visualization can solve this problem by adding tooltips in which we can take a look at the raw data.

       •  Set the data in the correct format

       •  Plot a basic time-series plot

       •  Add elements

  • Getting Started with Shiny4:09

    Shiny is a package to build fully featured websites from scratch in R. The way it communicates between the user interface and the server may seem difficult to understand. However, with some explanation, understanding Shiny becomes very easy and intuitive.

       •  Introduce the Shiny package

       •  Explain the tutorial and examples

       •  Understand the basic structure of a Shiny website

  • Creating a Simple Website4:52

    Understanding the structure of a Shiny website is very important. However, presenting it from a website is not enough for the viewers to replicate it. Therefore, in this video, we are going to create a simple website with data and plots we already used, to further help viewers.

       •  Understand the basic structure of Shiny

       •  Add elements to UI and Server

       •  Test the website

  • File Input3:09

    If we plan to upload our Shiny website on-line, we need to implement a way for users to upload their own data. In this video, we are going to show how to do just that.

       •  Importing files in Shiny

       •  Simple code to do it

       •  Add a separator for more flexibility

  • Conditional Panels – UI3:44

    One of the key components of a successful website is the ability to respond to users’ interactions. This can be achieved with conditional panels, which change the UI based on users’ interactions.

       •  Explain conditional panels

       •  Understand UI modifications

       •  Apply server modifications

  • Conditional Panels – Servers5:31

    One of the key components of a successful website is the ability to respond to users’ interactions. This can be achieved with conditional panels, which change the UI based on users’ interactions.

       •  Modify server side modifications

       •  Keep track of the IDs

       •  Recognize variables automatically

  • Deploying the Site5:37

    So far, we have looked at ways to create and add elements to a Shiny website. However, sooner or later, this website needs to be deployed on the Internet so that everybody can use it. Here, you will learn how to do it using a free account on shinyapps.io.

       •  Separate ui.r and server.r

       •  Add plots to the script

       •  Finally, we deploy the site.

Requirements

  • Prior basic understanding of R programming is expected.

Description

Effective visualization helps you get better insights from your data, make better and more informed business decisions! R is one of the most widely used open source languages for data and graph analysis. It is platform-independent and allows users to load various packages as well as develop their own packages to interpret data better. R gives aspiring analysts and data scientists the ability to represent complex sets of data in an impressive way. So, if you're a data science professional and want to learn about the powerful data visualization techniques of R, then go for this Learning Path.

This comprehensive 3-in-1 course follows a practical approach, where each recipe presents unique functions of plots, charts, and maps as well as visualization of 2D and 3D interactive plots in a step-by-step manner! You’ll begin with generating various plots in R using the basic R plotting techniques. Utilize R packages to add context and meaning to your data. Finally, you'll design interactive visualizations and integrate them on your website or blog!

By the end of the course, you’ll master the visualization capabilities of R to build interactive graphs, plots, and Pie charts as well as visualize 2D and 3D interactive plots.

Contents and Overview

This training program includes 3 complete courses, carefully chosen to give you the most comprehensive training possible.

The first course, Learning R for Data Visualization, covers getting to grips with R’s most popular packages and functions to create interactive visualizations for the web. We start by importing data in R from popular formats such as CSV and Excel tables. Then you will learn how to create basic plots such as histograms, scatterplots, and more, with the default options, which guarantees stunning results. In the final part of the course, the Shiny package will be extensively discussed. This allows you to create fully-featured web pages directly from the R console, and Shiny also allows it to be uploaded to a live website where your peers and colleagues can browse it and you can share your work. You will see how to build a complete website to import and plot data, plus we will present a method to upload it for everybody to use. Finally, you will revise all the concepts you've learned while having some fun creating a complete website.

By the end of the course, you will have an armor full of different visualization techniques, with the capacity to apply these abilities to real-world data sets.

The second course, R Data Visualization - Basic Plots, Maps, and Pie Charts, covers mastering the visualization capabilities of R to build interactive graphs, plots, and Pie. We start - off with the basics of R plots and an introduction to heat maps and customizing them. After this, we gradually take you through creating interactive maps using the googleVis package. Finally, we generate choropleth maps and contouring maps, bubble plots, and pie charts.

The third course, R Data Visualization - Word Clouds and 3D Plots, covers advanced visualization techniques in R to build word clouds, 3D plots, and more. We start off with the basics of R plots and an introduction to heat maps and customizing them. After this, we gradually take you through creating interactive maps using the googleVis package. Finally, we generate choropleth maps and contouring maps, bubble plots, and pie charts.

By the end of the course, you’ll master the visualization capabilities of R to build interactive graphs, plots, and Pie charts as well as visualize 2D and 3D interactive plots.

About the Authors

  • Fabio Veronesi obtained a Ph.D. in digital soil mapping from Cranfield University and then moved to ETH Zurich, where he has been working for the past three years as a postdoc. In his career, Dr. Veronesi worked at several topics related to environmental research: digital soil mapping, cartography, and shaded relief, renewable energy and transmission line siting. During this time Dr. Veronesi specialized in the application of spatial statistical techniques to environmental data.


  • Atmajit Singh Gohil works as a senior consultant at a consultancy firm in New York City. After graduating, he worked in the financial industry as a Fixed Income Analyst. He writes about data manipulation, data exploration, visualization, and basic R plotting functions on his blog. He has a master's degree in financial economics from the State University of New York (SUNY), Buffalo. He also graduated with a Master of Arts degree in economics from the University of Pune, India. He loves to read blogs on data visualization and loves to go out on hikes in his free time.

Who this course is for:

  • Data Analysts, Data Scientists or Data Journalist, who wants to learn about Data Visualization and represent complex sets of data in an impressive way.