Mean and SD plot with Seaborn objects

Mean and SD plot using Seaborn Objects

In this tutorial, we will learn how to make Mean and Standard Deviation plot using Seaborn’s object orient interface Seaborn objects. Mean and SD plot plot across the different groups in adataset can quickly reveal the trend in the data. We will use gapminder dataset to make the mean and SD values plot using Seaborn… Continue reading Mean and SD plot with Seaborn objects

How to make Stacked area plot with Matplotlib

How to make Stacked area plot with Matplotlib

In this tutorial, we will learn how to make a stacked area plot using Python’s Matplotlib. We can make stacked area plot using matplotlib’s stackplot() function. The basic syntax of using Matplotlib’s stackplot() function is where x(N,) and y(M, N) array-like inputs. Data for making Stacked area plot in Python In this example, we will… Continue reading How to make Stacked area plot with Matplotlib

How to reverse legend key order in ggplot2

How to reverse legend key order in ggplot2

In this tutorial, we will learn how to reverse the order of legend keys in ggplot2. In ggplot2, when we color by a variable using color or fill argument in side aes(), we get a legend with keys showing which keys match which colors. Here we will show how to reverse the order of legend… Continue reading How to reverse legend key order in ggplot2

How to Increase Legend Key Size in ggplot2

How to Increase Color Legend's Point Size in ggplot2

In this tutorial, we will learn how to increase the color legend’s point (or legend key) size in ggplot2. Often when you make a plot with multiple groups and large number of data points, the legend key for the color variable are small and can be not legible in the plot. Here we will see… Continue reading How to Increase Legend Key Size in ggplot2

Lollipop plot with ggplot extension ggalt

Customizing lollipop. plot with geom_lollipop() in ggalt

In this tutorial, we will learn how to make lollipop plot using ggalt, one of the ggplot2 extension packages. A lollipop plot is a great alternative for bar plot as the amount ink used to make the lollipop plot is much smaller. ggalt, R package developed by @hrbrmstr, has a geom for making lollipop called… Continue reading Lollipop plot with ggplot extension ggalt

Exit mobile version