How To Customize Border in facet in ggplot2

Remove Space Between Panels in Facet

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 lines in a… Continue reading How To Customize Border in facet in ggplot2

How To Make PCA Plot with R

PCA plot: PC1 vs PC2

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 by each Principal Component. In this post we… Continue reading How To Make PCA Plot with R

Sinaplot vs Violin plot: Why Sinaplot is better than Violinplot

Sinaplot and 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 only five summary stats… Continue reading Sinaplot vs Violin plot: Why Sinaplot is better than Violinplot

How to Combine Two Seaborn plots with Shared y-axis

Combine Two plots into one in Seaborn

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 how to do this. Let us get… Continue reading How to Combine Two Seaborn plots with Shared y-axis

How To Manually Specify Palette Colors in Seaborn

How to specify your own color pallete Seaborn Python?

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 post, we will see how to manually specify colors to… Continue reading How To Manually Specify Palette Colors in Seaborn

Exit mobile version