
Explore scatter plots in r using a grammar of graphics, map x and y, add trend lines for linear, quadratic, and exponential relationships, and identify outliers and data spread.
Learn how to import and clean data in RStudio using tidyverse, read_table2, and read_csv, rename columns, set column types, and filter out missing values.
Explore histograms in R to reveal data distributions using the grammar of graphics and a tidyverse workflow, including data setup, aesthetic mappings, and bin widths and density or normal curves.
Set up your R project for histogram exercises in Exploratory data analysis in R, save exercise file, organize data in a project folder, and clean the environment to prevent conflicts.
Explore histograms of a calibration factor dataset in R using tidyverse and ggplot2, mapping calibration_factor, adjusting bins, and adding lines to improve definition for normal data.
Analyze a bimodal, symmetric deflection dataset using ggplot histograms, pipe-based data wrangling, and tidyverse workflows to inspect distribution and data structure.
Explore a bimodal distribution formed by two normal distributions using histograms in R, adjusting bins and colors to reveal two distinct modes.
Some diversions along the way as we plot a skewed dataset. Many times, we'll need to assign names to our variables (i.e., column headers) or specify the type of data as either numeric, factors, etc. As import the data, we'll run into these issues, and instead of editing them out of the video, I've included them as an example of how you can solve these problems when importing data.
We will include a simple method for adding data to an existing data frame.
Explore box plots within the tidyverse to compare groups, interpret medians, quartiles, and interquartile range, and identify outliers through notched and faceted visuals.
Learn to create box plots in r with a john me two data set, including loading, cleaning, converting factors, and exploring groups by lab with ggplot.
Explore non-normal distributions using the kuku plot in R, loading tidyverse, renaming data columns, and comparing short-tailed and long-tailed data to the reference distribution.
Explore essential graphics, scatter plots, histograms, box plots, and probability plots in R to test assumptions for exploratory data analysis and normal distribution.
These are additional topics related to the creation of "complete" graphics. It is not part of the course but presented as a guide to help you move beyond the basics. The timestamps below are approximate:
0:00 Intro and loading data
10:00 Themes
12:34 Controlling chunk messages and warnings
13:25 Adding fit lines
17:13 Color and factors
19:55 Filtering data inside ggplot()
22:01 Using facets to create multiple plots
25:00 Adding ASCII characters
26:55 Creating a complete graphic
31:23 Adjusting transparency with the alpha argument
35:50 Adding color to the data points
39:30 Adding data to the data frame using mutate
41:08 Summarizing data with group-by() and summarise() functions
43:25 Arranging data inside a data frame
46:43 Reordering data in ggplot()
This example-based course introduces exploratory data analysis (EDA) using R. A primary objective is to apply graphical EDA techniques to representative data sets using the RStudio platform.
I have incorporated datasets from the NIST/SEMATECH e-Handbook of Statistical Methods into this course and adopted their fundamental approach of Exploratory Data Analysis.
We use scatter plots to examine relationships between two variables, determine if there is a linear or non-linear relationship, analyze variations of the dependent variable, and determine if there are outliers in the dataset.
Of course, we need to remember that causality implies association and that association does NOT imply causality.
We will summarise the distribution of a dataset graphically using histograms. This tool can quickly show us the location and spread of the data, and give us a good indication if the data follows a normal distribution, is skewed, has multiple modes or outliers.
An underused, complementary technique to histograms is the probability plot. We will construct probability plots by plotting the data against a theoretical normal distribution. If the data follows a normal distribution, the plot will form a straight line. We will use the normal probability plot to assess whether or not our examples follow a normal distribution.
Finally, we will use box plots to view the variation between different groups within the data.
Aside from scatterplots, most spreadsheet programs do not support these methods, so learning how to do this fundamental analysis in R can improve your ability to explore your data.