# Articles by Steven P. Sanderson II, MPH

### Horizontal Boxplots in R using the Palmer Penguins Data Set

October 1, 2023 |

Introduction Boxplots are a great way to visualize the distribution of a numerical variable. They show the median, quartiles, and outliers of the data, and can be used to compare the distributions of multiple groups. Horizontal boxplots are a va...

### Mastering Data Visualization with Pairs Plots in Base R

September 24, 2023 |

Introduction Data visualization is a crucial tool in data analysis, allowing us to gain insights from our data quickly. One of the fundamental techniques for exploring relationships between variables is the pairs plot. In this blog post, we’ll d...

### Creating Confidence Intervals for a Linear Model in R Using Base R and the Iris Dataset

September 21, 2023 |

Introduction Linear regression is a fundamental statistical technique used to model the relationship between a dependent variable and one or more independent variables. While fitting a linear model is relatively straightforward in R, it’s also e...

### Mastering Data Visualization in R: Plotting Predicted Values with the mtcars Dataset

September 19, 2023 |

Introduction Data visualization is a powerful tool in a data scientist’s toolkit. It not only helps us understand our data but also presents it in a way that is easy to comprehend. In this blog post, we will explore how to plot predicted values ...

### Exploring Data with Scatter Plots by Group in R

September 18, 2023 |

Introduction Data visualization is a powerful tool for gaining insights from your data. Scatter plots, in particular, are excellent for visualizing relationships between two continuous variables. But what if you want to compare multiple groups w...

### Mastering Histogram Breaks in R: Unveiling the Power of Data Visualization

September 17, 2023 |

Introduction Histograms are a fundamental tool in data analysis and visualization, allowing us to explore the distribution of data quickly and effectively. While creating a histogram in R is straightforward, specifying breaks appropriately can m...

### Histograms with Two or More Variables in R

September 14, 2023 |

Introduction Histograms are powerful tools for visualizing the distribution of a single variable, but what if you want to compare the distributions of two variables side by side? In this blog post, we’ll explore how to create a histogram of two ...

### How to Create a Histogram with Different Colors in R

September 13, 2023 |

Introduction Histograms are a fantastic way to visualize the distribution of data. They provide insights into the underlying patterns and help us understand our data better. But what if you want to add some color to your histograms to make them ...

### How to Plot Multiple Plots on the Same Graph in R

September 12, 2023 |

Introduction Data visualization is a crucial aspect of data analysis. In R, the flexibility and power of its plotting capabilities allow you to create compelling visualizations. One common scenario is the need to display multiple plots on the sa...

### Exploring the Third Dimension with R: A Guide to the persp() Function

September 11, 2023 |

Introduction If you’re an R enthusiast looking to take your data visualization to the next level, you’re in for a treat. In this blog post, we’re going to dive into the world of 3D plotting using R’s powerful persp() function. Whether you’re vis...

### Plotting SVM Decision Boundaries with e1071 in R

September 10, 2023 |

Introduction Support Vector Machines (SVM) are a powerful tool in the world of machine learning and classification. They excel in finding the optimal decision boundary between different classes of data. However, understanding and visualizing the...

### Creating Population Pyramid Plots in R with ggplot2

September 7, 2023 |

Introduction Are you interested in visualizing demographic data in a unique and insightful way? Population pyramids are a fantastic tool for this purpose! They allow you to compare the distribution of populations across age groups for different ...

### Mastering Data Visualization in R: How to Plot a Subset of Data

September 6, 2023 |

Introduction Data visualization is a powerful tool for gaining insights from your data. In R, you have a plethora of libraries and functions at your disposal to create stunning and informative plots. One common task is to plot a subset of your d...

### Exploring Multivariate Data with Principal Component Analysis (PCA) Biplot in R

September 5, 2023 |

Introduction When it comes to analyzing multivariate data, Principal Component Analysis (PCA) is a powerful technique that can help us uncover hidden patterns, reduce dimensionality, and gain valuable insights. One of the most informative ways t...

### When to use Jitter

September 4, 2023 |

As an R programmer, one of the most useful functions to know is the jitter function. The jitter function is used to add random noise to a numeric vector, which can be helpful when visualizing data in a scatterplot. By using the jitter function, w...

### Kernel Density Plots in R

August 31, 2023 |

Introduction Kernel Density Plots are a type of plot that displays the distribution of values in a dataset using one continuous curve. They are similar to histograms, but they are even better at displaying the shape of a distribution since they ...

### Creating Eye-Catching Data Visualizations with Lollipop Charts in R using ggplot2

August 30, 2023 |

Introduction When it comes to conveying information effectively, data visualization is a powerful tool that can make complex data more accessible and understandable. One captivating type of data visualization is the lollipop chart. Lollipop char...

### Exploring Relationships with Correlation Heatmaps in R

August 29, 2023 |

Introduction Data visualization is a powerful tool for understanding the relationships between variables in a dataset. One of the most common and insightful ways to visualize correlations is through heatmaps. In this blog post, we’ll dive into t...

### Visualizing Categorical Data in R: A Guide with Engaging Charts Using the Iris Dataset

August 28, 2023 |

Introduction Categorical data is a type of data that represents distinct groups or categories. Visualizing categorical data can provide valuable insights and help in understanding patterns and relationships within the data. In this blog post, we...