Coloring Barplots with ggplot2 in R

Coloring Barplots by a Variable with ggplot2

In this tutorial, we will see examples of making barplots and coloring the barplots in a few simple ways. We will see how to color barplots manually by specifying a color of interest and how to color a barplot by another variable in the dataset. Let us load tidyverse suite of packages and set the… Continue reading Coloring Barplots with ggplot2 in R

How to Make Horizontal Stacked Barplots with ggplot2 in R?

Stacked Barplots Side By Side with ggplot2 in R

Stacked barcharts are a variant of barplots, when you have data from multiple groups. In this tutorial, we will see two examples of making stacked barplots using ggplt2 in R. First we will see how to make stacked barplot of two groups with one on top of the other. In the second example we will… Continue reading How to Make Horizontal Stacked Barplots with ggplot2 in R?

Heatmap from Matrix using ggplot2 in R

Heatmap from Matrix with ggplot2

Heatmaps are data visualization tool that displays a matrix of data as a matrix of colors. For example, matrix elements with low values will have lighter colors and the elelments with high values will have a darker color. In earlier post we saw examples of making heatmap using ggplot2 in R. However, we assumed that… Continue reading Heatmap from Matrix using ggplot2 in R

Horizontal Boxplots with Points using Seaborn in Python

Horizontal Boxplots with Points using Seaborn

Horizontal boxplots are useful when you have lots of groups with longer names. If you make simple boxplots, the longer names would overlap on each other and make it impossible to read the group names. Horizontal boxplots solve that problem easily. In this post, we will see an example of making horizontal boxplots with data… Continue reading Horizontal Boxplots with Points using Seaborn in Python

Sort Boxplot by Mean with Seaborn in Python

Sort Boxplot by Mean with Seaborn Python

Sorting a boxplot by mean or median values of each group is more helpful, when you are making a boxplot with multiple groups. In this post we will see an example of starting with a boxplot that is unordered and we will use Pandas and Seaborn to sort the boxplot by mean (and median). First,… Continue reading Sort Boxplot by Mean with Seaborn in Python

Exit mobile version