How To Make Violin Plots with ggplot2 in R?

Horizontal Violin Plot Ordered: ggplot2 R

Violin plots are a way visualize numerical variables from one or more groups. Violin plots are similar to box plots. A boxplot shows a numerical distribution using five summary level statistics. Violin plots have the density information of the numerical variables in addition to the five summary statistics. In this post we will learn how… Continue reading How To Make Violin Plots with ggplot2 in R?

How To Highlight a Bar in Barplot in R?

How To Highlight a Bar in Barplot in R?

Sometimes while making a barplot, you might like to highlight a single bar in different color when compared to other bars. In this post, we will learn how to highlight a bar in barplot using ggplot2 in R. A Barplot displays counts or some quantitative variable corresponding to multiple categories as bars. Let us load… Continue reading How To Highlight a Bar in Barplot in R?

How To Make Barplots with Error bars in ggplot2?

How to Make Barplots with Error bars in R?

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?

Visualizing Intersection Sets with UpSet Plot: A Replacement for Venn Diagrams

Visualizing Intersection of Four sets with UpSet plot

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 Add Dollar Symbol for Axis Labels with ggplot2?

Dollar Format on axis with Scales

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?

Exit mobile version