In this post, we will learn how to make a barplot with error bar using ggplot2 in R. Barplot alone is useful to display counts for multiple categories. However, often there may be uncertainty around the count values and we could represent as error bar on the barplot. Let us load tidyverse packages. We will… Continue reading How To Make Barplots with Error bars in ggplot2?
Author: datavizpyr
Visualizing Intersection Sets with UpSet Plot: A Replacement for Venn Diagrams
Venn Diagrams are the bread and butter of visualizing intersections of multiple sets. One of the reasons for Venn Diagram is popular because it is simple and intuitive. However, when you have more than three sets, Venn Diagram gets really complicated to make sense. UpSet plots are a great replacement for Venn Diagram for visualize… Continue reading Visualizing Intersection Sets with UpSet Plot: A Replacement for Venn Diagrams
How to Make Horizontal Violin Plot with Seaborn in Python?
In this tutorial, we will learn how to make horizontal violin plot in Seaborn with Python. With Seaborn, we can use two similar functions, catplot() and violinplot() to make violin plots. Making a violinplot horizontal with Seaborn is pretty simple. All we need to do is specify the categorical variable on y-axis and the numerical… Continue reading How to Make Horizontal Violin Plot with Seaborn in Python?
How to Add Dollar Symbol for Axis Labels with ggplot2?
In this tutorial, we will learn how to format x or y-axis so that we have dollar symbol in a plot made with ggplot2 in R. Let us create a dataframe with salary education information for developers using the StackOverflow survey results. We first create two lists; one for education and the second for salary.… Continue reading How to Add Dollar Symbol for Axis Labels with ggplot2?
Scatter Plot with Marginal Histograms in Python with Seaborn
Sometimes when you make a scatter plot between two variables, it is also useful to have the distributions of each of the variables on the side as histograms. Scatter plots with marginal histograms on the side is a great way to do that. We can use Seaborn jointplot() function in Python to make Scatter plot… Continue reading Scatter Plot with Marginal Histograms in Python with Seaborn