Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Multivariate Data Visualization with R
Rating: 4.3 out of 5(42 ratings)
2,888 students

Multivariate Data Visualization with R

Course describes and demonstrates a creative approach for constructing and drawing grid-based multivariate graphs in R
Last updated 7/2020
English

What you'll learn

  • Graphically depict visual 2D, 3D, 4D (and so on) relationships that exist in multivariate data sets.
  • Understand how "trellis" graphic objects are different from other graphic objects in R.
  • Understand how to apply the techniques of conditioning and paneling to present multivariate data relationships.
  • Understand the nature of lattice panel functions and know how to create and modify them for brilliant multivariate graphics displays.
  • Have a powerful visual toolset to visually present the results of multi-variable statistical model fitting.

Course content

4 sections32 lectures6h 45m total length
  • Introduction to Course1:16
  • Introduction to Lattice16:24

    The lattice package, written by Deepayan Sarkar, attempts to improve on base R graphics by providing better defaults and the ability to easily display multivariate relationships. In particular, the package supports the creation of trellis graphs - graphs that display a variable or the relationship between variables, conditioned on one or more other variables.

    The typical format is

    <em>graph_type</em>(<em>formula</em>, data=)

    where graph_type is selected from the listed below. formula specifies the variable(s) to display and any conditioning variables . For example ~x|A means display numeric variable x for each level of factor A.y~x | A*B means display the relationship between numeric variables y and x separately for every combination of factor A and B levels. ~x means display numeric variable x alone.

  • The Trellis Object13:18

    A trellis object, as returned by high level lattice functions like xyplot, is a list with the "class" attribute set to "trellis". Many of the components of this list are simply the arguments to the high level function that produced the object. Among them are: as.table, layout, page, panel, prepanel,main, sub, par.strip.text, strip, skip, xlab ylab, par.settings, lattice.options and plot.args.

  • Dimension and Physical Layout14:00
  • Scales and Axes8:43
  • Visualizing Univariate Distributions (part 1)17:04
    1. In statistics, a univariate distribution is a probability distribution of only one random variable. This is in contrast to a multivariatedistribution, the probability distribution of a random vector (consisting of multiple random variables).
  • Visualizing Univariate Distributions (part 2)14:56
  • Two-Sample QQ Plots14:14
    1. A q-q plot is a plot of the quantiles of the first data set against the quantiles of the second data set. By a quantile, we mean the fraction (or percent) of points below the given value. That is, the 0.3 (or 30%) quantile is the point at which 30% percent of the data fall below and 70% fall above that value.
  • Strip Plots8:03

    Box-and-whisker plots summarize the data using a few quantiles, and possibly some outliers. This summarizing can be important when the number of observations is large. When the number of observations per sample is small, it is often sufficient to simply plot the sample values side by side in a common scale. Such plots are known as strip plots, also referred to as univariate scatter plots. They are in fact very similar to the bivariate scatter plots.

Requirements

  • Students will need to install R and RStudio (instructions are provided in the course materials).

Description

It is often both useful and revealing to create visualizations, plots and graphs of the multivariate data that is the subject of one's research project. Often, both pre-analysis and post-analysis visualizations can help one understand “what is going on in the data" in a way that looking at numerical summaries of fitted model estimates cannot. The lattice package in R is uniquely designed to graphically depict relationships in multivariate data sets.

This course describes and demonstrates this creative approach for constructing and drawing grid-based multivariate graphic plots and figures using R. Lattice graphics are characterized as multi-variable (3, 4, 5 or more variables) plots that use conditioning and paneling. Consequently, it is a popular approach for, and a good fit to visually present the results of multi-variable statistical model fitting. The appearance of most of the plots, graphs and figures are determined by panel functions, rather than by the high-level graphics function calls themselves. Further, the user of lattice graphics has extensive and comprehensive control over many more of the details and features of the visual plots, far greater control that is afforded by the base graphics approach in R. The method is based on trellis graphics which were popularized in the S language developed by Bell Labs.

Who this course is for:

  • Anyone who uses R, or who wants to use R, for any sort of multivariate data analysis would benefit from taking this course.
  • The course is appropriate for students, scientists, or other quantitative-analysis professionals who want to display numerical information in plots and graphs.
  • To take advantage of the course, students will need to have a basic (introductory) level or ability to use R software. However, all of the graphic R scripts are provided with the course materials.