R Guides

This page lists every R tutorial on Statology.

Visualizations
How to Plot Multiple Boxplots in One Chart in R
How to Make a Pie Chart in R
How to Create a Strip Chart in R
How to Plot Multiple Lines (data series) in One Chart in R
How to Create a Gantt Chart in R Using ggplot2
How to Create a Heatmap in R Using ggplot2
How to Create a Lollipop Chart in R
How to Create a Bump Chart in R Using ggplot2
How to Use the Jitter Function in R for Scatterplots
How to Create a Population Pyramid in R
How to Use the abline() Function in R to Add Straight Lines to Plots
How to Create a Relative Frequency Histogram in R
How to Create a Scatterplot with a Regression Line in R
A Complete Guide to the Best ggplot2 Themes

Probability Distributions
The Uniform Distribution in R
How to Fit a Gamma Distribution to a Dataset in R
A Guide to dnorm, pnorm, rnorm, and qnorm in R
A Guide to dbinom, pbinom, qbinom, and rbinom in R
A Guide to dpois, ppois, qpois, and rpois in R
A Guide to dgeom, pgeom, qgeom, and rgeom in R
A Guide to dt, qt, pt, & rt in R
How to Plot a Normal Distribution in R
How to Plot a Chi-Square Distribution in R
How to Plot a t Distribution in R
How to Plot a Log Normal Distribution in R
How to Plot a Binomial Distribution in R
How to Plot a Poisson Distribution in R
How to Plot a Weibull Distribution in R

Hypothesis Tests
How to Conduct a Sobel Test in R
How to Conduct Fisher’s Exact Test in R
How to Conduct a Jarque-Bera Test in R
A Guide to Permutation Tests
How to Calculate the P-Value of an F-Statistic in R
Frequency Tables in R
How to Conduct an Anderson-Darling Test in R
A Guide to Bartlett’s Test of Sphericity
How to Calculate Standard Deviation in R: Explanation & Examples
How to Identify Influential Data Points Using Cook’s Distance
How to Conduct Levene’s Test for Equality of Variances in R
How to Create & Interpret a Q-Q Plot in R
How to Easily Conduct a Paired t-test in R
How to Perform the Wilcoxon Signed-Rank Test in R
How to Perform a Mann-Whitney U Test in R
How to Perform a Mann-Kendall Trend Test in R
How to Perform McNemar’s Test in R
How to Perform Grubbs’ Test in R
How to Perform a Binomial Test in R
How to Perform Mood’s Median Test in R

Regression
How to Perform Cross Validation for Model Performance in R
How to Create a Prediction Interval for Linear Regression in R
How to Perform Multiple Linear Regression in R
How to Perform Quadratic Regression in R
How to Perform Polynomial Regression in R
How to Perform Stepwise Regression in R
How to Calculate Variance Inflation Factor (VIF) in R
A Gentle Introduction to Poisson Regression for Count Data
How to Perform a Durbin-Watson Test in R
How to Perform a Breusch-Pagan Test in R
How to Create a Residual Plot in R

ANOVA
How to Conduct a One-Way ANOVA in R
How to Conduct a Two-Way ANOVA in R
How to Conduct a MANOVA in R
How to Conduct an ANCOVA in R
How to Easily Conduct a Kruskal-Wallis Test in R
How to Perform the Friedman Test in R

Time Series
How to Calculate MAPE in R
How to Calculate RMSE in R
How to Calculate MSE in R

R Operations
A Guide to apply(), lapply(), sapply(), and tapply() in R
How to Add an Index (numeric ID) Column to a Data Frame in R
How to Rename Data Frame Columns in R
How to Generate a Sample Using the Sample Function in R
How to Normalize Data in R
How to Use Mutate to Create New Variables in R
Interpreting Errors in R: ‘max’ not meaningful for factors