Change Axis Labels, Set Title and Figure Size to Plots with Seaborn

Set Title with Seaborn

In this post we will see examples of how to change axis labels, how to increase the size of axis labels and how to set title for the plot made using Seaborn in Python. These three are most basic customizations a plot needs to make it useful. Let us load the packages we need to… Continue reading Change Axis Labels, Set Title and Figure Size to Plots with Seaborn

How to Make Pairplot with Seaborn in Python?

Pairplot of Select Variables Seaborn

When you have multiple variables you might want to quickly look at how each variable is distributed and how each variable is related to other variables. Basically, we are interested in histograms of each variable and scatter plots for all pairs of variables. Seaborn’s pairplot enables us to make such a plot containing a matrix… Continue reading How to Make Pairplot with Seaborn in Python?

How To Facet a Scatter Plot with Altair?

Faceting in Altair

Faceting is a great technique to simplify a complex visualization. Faceting splits a single plot into multiple smaller plots containing subset of data corresponding to a group. This tutorial we will see an example of how to facet a scatter plot with Altair in Python. Let us first load the packages needed to use Altair… Continue reading How To Facet a Scatter Plot with Altair?

How to Reorder bars in barplot with ggplot2 in R

Descending order barplots in ggplot2

In this post, we will learn how to order bars in a barplot using ggplot2 in R. When we make barplot with ggplot2 on a character variable it places the group in alphabetical order. Here we will learn to use two functions, reorder() from base R and fct_reorder() function from forcats package to order the… Continue reading How to Reorder bars in barplot with ggplot2 in R

How To Make Barplots with ggplot2 in R?

Simple Barplot with geom_col(): ggplot2

Barplots are a popular graphics that is widely used to show categorical data with retangular bars whose height represent the quantitative value the variable. In this post we will see multiple examples of making bar plots using ggplot2 in R. Let us first load tidyverse, a suite of R packages including ggplot2. We will use… Continue reading How To Make Barplots with ggplot2 in R?

Exit mobile version