Search for tag: "traffic and transport"

Plotting Symbols, Colors, and Labeling Points in Scatterplots.mp4

In this video we show how to use vector-valued specifications for the col= and pch= graphical parameters when calling plot() or some other high level graphical function in R in order to distinguish…

From  Daniel Hall 1,717 plays 0  

Barcharts in R.mp4

Although plot() can produce bar charts, the barplot() function is often more convenient. In this video we introduce this function and illustrate its use to produce bar charts that display one and…

From  Daniel Hall 116 plays 0  

The plot() Function.mp4

The plot() function is the ultimate generic function in R. It is highly flexible, and produces a variety of different plot types depending upon the class of the objects that it operates on and the…

From  Daniel Hall 110 plays 0  

Creating Frequency Tables in R

Frequency distributions (univariate and joint) can be displayed in contingency tables, or cross-tabulations. In this video we show how tapply() can be used to create such tables, but we…

From  Daniel Hall 1,408 plays 0  

Repeatedly Applying Functions to Data - Part 2 (lapply() and sapply())

While tapply() applies a function to different observations in a vector, which might correspond to rows in a data frame, lapply() and sapply() apply a function to each element of a list. In the case…

From  Daniel Hall 199 plays 0  

Repeatedly Applying Functions to Data - Part 1 (tapply())

The tapply() function is one of several "apply" functions in R that allow a function to operate on data repeatedly. The function tapply() applies a function to groups of observations within…

From  Daniel Hall 172 plays 0  

Importing SAS Data Sets into R

In this video we will introduce some of the most important packages and functions for importing non-plain text data files. Here we concentrate on importing SAS data sets, which can be done by reading…

From  Daniel Hall 1,064 plays 0  

PROC REG - Part 1 (Simple Linear Regression).mp4

From  Daniel Hall 296 plays 0  

PROC SGPLOT - Part 4 (Scatter Plots)

The scatter plot is a fundamental tool for visualizing the relationship between two quantitative variables. In this video we show how to use PROC SGPLOT to produce scatter plots and demonstrate how…

From  Daniel Hall 505 plays 0  

PROC SGPLOT - Part 3 (Boxplots)

In this video we review the anatomy of a boxplot and show how to use PROC SGPLOT to produce vertical or horizontal boxplots. We show how to produce side-by-side boxplots as well as clustered…

From  Daniel Hall 752 plays 0  

PROC SGPLOT - Part 1 (Bar Charts)

PROC SGPLOT implements a wide variety of different plot types. In this video, we introduce the procedure and illustrate how to use it to produce bar charts that display frequency distributions or…

From  Daniel Hall 628 plays 0  

The MERGE Statement - Part 2, The Many-to-One Merge

In this video we demonstrate how to use the MERGE statement to perform a many-to-one merge. Three examples are given to demonstrate this programming task. Sometimes a data set with just one…

From  Daniel Hall 642 plays 0  

Using PROC MEANS

From  Daniel Hall 511 plays 0