Front Matter
Abstract
Preface
How to use these notes
Attribution
Major Attributions
License
Colophon
Introduction
1
Crash Course on the Tidyverse
1.1
What is the Tidyverse?
1.1.1
Tidy data
1.2
What’s the Difference between Base R and the Tidyverse?
2
Introduction to ggplot2
2.1
Understanding ggplot2’s Grammar of Graphics
2.2
Case Study: Visualizing Twin Data
2.2.1
Key Components of a ggplot2 Plot
Wide Form Data
3
Wide Form Data
3.1
Import Data
3.2
Data Structure
3.2.1
Annotated explainaton for the code snippet above:
3.3
Summary Statistics (Wide Form)
3.3.1
Numeric Variables
3.3.2
Frequency Tables
4
Wide Form Data Visualization
4.1
1. Univariate Distributions
4.1.1
Histograms
4.1.2
Density Plots
4.1.3
Box Plots
4.2
2. Bivariate Distributions
4.2.1
Scatter
4.2.2
Marginal Density Plots
4.3
3. Correlation Analysis
4.3.1
Correlation Matrix and Correlogram
Long Form Data
5
Long Form Data
5.1
Converting from Wide to Long Form
5.2
Data Structure
5.3
Adding
sex
and
zyg
5.4
Summary Statistics
5.5
Data Visualization
5.5.1
1. Univariate Distributions
5.5.2
Density Plots
5.5.3
2. Bivariate Distributions
5.5.4
4. Marginal Density Plots
5.5.5
5. Correlations
6
Long Form Data Plots
Path Diagrams
7
Introduction to Path Diagrams
7.1
Constructing a Simple Path Diagram
7.1.1
Understanding the Components
7.1.2
Step-by-Step Construction
7.1.3
ACE Model Example
7.2
Pre-existing software
7.2.1
Creating a Path Diagram with
omxGraphviz
7.2.2
Creating a Path Diagram for an ACE Model Using the
umx
Package
Generating Tables
8
Generating Tables in APA Style
8.1
Summary Statistics
8.2
Frequency Tables
9
Generate APA-style table for frequency tables
10
Final Words
References
License: CC-BY-SA
Data Atlas
References
Wright, S. 1920.
“The Relative Importance of Heredity and Environment in Determining the Piebald Pattern of Guinea-Pigs.”
Proceedings of the National Academy of Sciences
6 (6): 320–32.
https://doi.org/10.1073/pnas.6.6.320
.