In this post, we will learn how to make beautiful plots with ggplot2 using themes from ggthemes R package. By default ggplot2 makes plots with grey background, using theme_grey(). ggplot2 comes with about 8 complete themes that help us change the look of a given plot. If you … [Read more...] about How to Change ggplot theme with ggthemes
How to make a plot with column name in a variable
In this tutorial, we will learn how to make a plot using ggplot2 such that the column name of interest in a plot is saved as a variable. And we are interested in using the variable name to make a boxplot. The ability to use a column name as a variable help us make more … [Read more...] about How to make a plot with column name in a variable
Multiple ways to remove legend in ggplot2
In this post, we will learn how to remove legend of a plot made with ggplot2 in 4 different ways. Adding legend to a plot is often helpful to easily understand a plot. However there are scenarios legends can be redundant or we don't need them. In ggplot2, we have multiple … [Read more...] about Multiple ways to remove legend in ggplot2
Mean and SD plot with 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 … [Read more...] about Mean and SD plot with Seaborn objects
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 … [Read more...] about How to make Stacked area plot with Matplotlib