In this tutorial, we will learn how to place two plots made with ggplot2 side by side. In R, we have multiple solutions to combine plots into a single plot. Here, we will use R Package gridExtra's function grid.arrange to combine two plots side by side. Firs, let us load the … [Read more...] about Side by side plots with ggplot2 using gridExtra
How to Make Axis Title Bold Font with ggplot2
In this tutorial, we will learn how to change the axis title bold font with ggplot2 in R. Let us load the packages needed including tidyverse and palmerpenguins for penguins data. A plot with default font for axis title text Let us make a simple scatter plot using … [Read more...] about How to Make Axis Title Bold Font with ggplot2
How to Make Axis Text Bold in ggplot2
In this tutorial, we will learn how to make the axis text bold in a plot made with ggplot2 in R. Axis text in a plot refers to the text annotating the tick marks on x and y-axis. By default the axis text around tick marks are not in bold font and here we will make the axis text … [Read more...] about How to Make Axis Text Bold in ggplot2
How To Add Mean/Median Line to a Seaborn Displot
In this tutorial, we will learn how to add mean or median vertical line to a plot made with Seaborn's displot() function. Seaborn's displot() offers capability to visualize the univariate or bivariate distribution of data. Here we will make a histogram with Seaborn's displot() … [Read more...] about How To Add Mean/Median Line to a Seaborn Displot
Pair plot from scratch with tidyverse
Pair plot is a simple way to quickly visualize the relationship between multiple variables in a dataframe. In this post, we will learn how to make a simple pair plot from scratch between a few quantitative/numerical variables using basic tidyverse functions. (H/T to a twitter … [Read more...] about Pair plot from scratch with tidyverse