A common problem in making plots, say a barplot or boxplot with a number of groups is that, names of the groups on x-axis label often overlap with each other. Till now, one of the solutions to avoid overlapping text x-axis is to swap x and y axis with coord_flip() and make a … [Read more...] about How To Avoid Overlapping Labels in ggplot2?
How To Make Ridgeline plot in Python with Seaborn?
Ridgeline plots are great to visualize numerical distributions corresponding to multiple groups or categorical variables. Ridgeline plots make density plots or histograms for each group one on top of each other and thus making it look like "a mountain range". They are great for … [Read more...] about How To Make Ridgeline plot in Python with Seaborn?
Multiple Line Plots or Time Series Plots with ggplot2 in R
Line plots or time series plots are helpful to understand the trend over time. In this post we will learn how to make multiple line plots (or time-series plots in the sample plot) in R using ggplot2. Let us load tidyverse the suite of R packages including ggplot2 to make the … [Read more...] about Multiple Line Plots or Time Series Plots with ggplot2 in R
Horizontal Stripplot with Jitter using Altair in Python
In this post, we will learn how to make horizontal stripplot with jitter using Altair in Python. In an earlier post we learned step-by-step instructions to make stripplot with jitter. We will use gapminder dataset to make the stripplot with Altair. Let us load the data … [Read more...] about Horizontal Stripplot with Jitter using Altair in Python
Overlapping Histograms with Matplotlib in Python
In this post we will see example of plotting multiple histograms on the same plot using Matplotlib in Python. Let us first load Matplotlib and numpy to make overlapping histograms with Matplotlib in Python. We will simulate data using NumPy's random module. First we … [Read more...] about Overlapping Histograms with Matplotlib in Python