How to Add Error Values to Barplot Labels in R with ggplot2

Add Error Values as Labels to Barplot in ggpot2

In this tutorial, we will learn how to add error values as labels on bars in a barplot. Thanks to @charliejhadley‘s nice tip showing how to add errors on barplot labels using str_glue() function. The main idea behind adding errors to labels is very similar to adding barplot heights as labels. In addition to the… Continue reading How to Add Error Values to Barplot Labels in R with ggplot2

Bump Plot with ggbump

Customizing Bump Plot made with ggbump

Bump plots are line plots with dots showing the data points. Bump plots can be useful in understanding the change in rank over time. In this tutorial, we will learn how to make bump plots using ggbump package, a ggplot2 extension package. To make a bump plot we will use the top browser usage over… Continue reading Bump Plot with ggbump

How to wrap long axis tick labels into multiple lines in ggplot2

Wrapping or Folding long axis tick labels in a ggplot into multiple lines

In this tutorial, we will learn how to wrap really long axis tick labels into multiple lines in R while making plots with ggplot2. A long axis text labels make harder to understand the plot and ofter it overlaps with the neighboring labels and obscuring the labels. Here we will see two different ways to… Continue reading How to wrap long axis tick labels into multiple lines in ggplot2

How to make UMAP plot in R

UMAP Plot to Identify Potential sample mix-ups

UMAP, short for “Uniform Manifold Approximation and Projection” is a one of the useful dimensionality reduction techniques like tSNE. UMAP is non-linear dimension reduction technique and often used for visualizing high-dimensional datasets. In this tutorial, we will learn how to perform dimensionality reduction using UMAP in R and learn make a UMAP plot using ggplot2… Continue reading How to make UMAP plot in R

How to Remove Space between Legend at Bottom and x-axis in ggplot2

Reduce Space between legend and x-axis: Use legend.margin()

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 and x-axis. In… Continue reading How to Remove Space between Legend at Bottom and x-axis in ggplot2

Exit mobile version