UMAP, short for "Uniform Manifold Approximation and Projection" is a one of the useful dimensionality reduction techniques like tSNE and PCA. UMAP is non-linear dimension reduction technique and often used for visualizing high-dimensional datasets. In this tutorial, we will learn … [Read more...] about How to make UMAP plot in R
How to Remove Space between Legend at Bottom and x-axis in ggplot2
In ggplot2, we can adjust the position of legend easily. By default, ggplot2 places the legend on the right side of a plot. Using theme() function, we can move the legend to the bottom of or top of the plot. Sometime, you might like to customize the space between legend at bottom … [Read more...] about How to Remove Space between Legend at Bottom and x-axis in ggplot2
How to add percentage label on bars in barplot with ggplot2
Adding percentage labels or count labels to bars in a barplot can help read the barplot quickly. In this tutorial, we will learn how to add labels with percentage symbol on bars in a barplot made with ggplot2 in R. Loading Packages and Dataset Let us get started by loading … [Read more...] about How to add percentage label on bars in barplot with ggplot2
Grouped Boxplots with reproducible jittered data points
In this post we will learn how to make a grouped boxplots with reproducible jittered points. We can make a grouped boxplot with jittered points using position_jitterdodge() function as position argument to geom_point(). Note that using the handy wrapper function … [Read more...] about Grouped Boxplots with reproducible jittered data points
How to Add Vertical/Horizontal Lines to Subplots with Seaborn
In this tutorial, we will learn how to add vertical or horizontal lines to "small multiples" i.e. multiple subplots of similar kind using Seaborn's refline() function (h/t to Chris Moffitt of @pbpython). Vertical/Horizontal lines are often useful to show where the mean or median … [Read more...] about How to Add Vertical/Horizontal Lines to Subplots with Seaborn