ggplot2's facet options are a great way make small multiples, i.e. multiple plots of the same type in a panel or grid. In this post, we will learn how to control the border line in a plot made with facet_wrap() function in ggplot2. First we will see how to remove the border … [Read more...] about How To Customize Border in facet in ggplot2
How To Make PCA Plot with R
Principal Component Analysis (PCA) is one of the commonly used methods used for unsupervised learning. Making plots using the results from PCA is one of the best ways understand the PCA results. Earlier, we saw how to make Scree plot that shows the percent of variation explained … [Read more...] about How To Make PCA Plot with R
Sinaplot vs Violin plot: Why Sinaplot is better than Violinplot
In this post, we will learn how to make Sinaplot in R and show why it is a better way visualize numerical data from multiple categories. In an earlier post, we discussed the benefits of making Violinplot than making a boxplot. This is mainly due to the fact that Boxplot relies … [Read more...] about Sinaplot vs Violin plot: Why Sinaplot is better than Violinplot
How to Combine Two Seaborn plots with Shared y-axis
In this tutorial, we will see how to join or combine two plots with shared y-axis. As an example, we will make a scatterplot and join with with marginal density plot of the y-axis variable matching the variable colors. Thanks to Seaborn's creator Michael Waskom's wonderful tip on … [Read more...] about How to Combine Two Seaborn plots with Shared y-axis
How To Manually Specify Palette Colors in Seaborn
When we make a plot with Seaborn, say a scatterplot using Seaborn's scatterplot and color the groups of the data using a grouping variable, Seaborn chooses suitable colors automatically. Sometimes you might like to change the default colors to colors of your choice. In this … [Read more...] about How To Manually Specify Palette Colors in Seaborn