In this post, we will see how to add labels or annotations to select data points such that the labels don't overlap with each other. We will use the R package ggrepel together with ggplot to add labels without overlaps. More specifically we will use geom_text_repel() function … [Read more...] about How to Add Labels to Select Points with ggrepel?
How to reorder barplots with facetting with ggplot2 in R?
Reordering bars in barplot either in ascending or descending order can help quickly see how the groups/categories vary. When you have a thrid variable, adding facet to the barplot can be very useful. In this tutorial, we will see how to reorder bars in barplot with facetting by … [Read more...] about How to reorder barplots with facetting with ggplot2 in R?
6 Tips to Make Beautiful Tables with R Package gt
Making tables as part of your data visualization strategy can be a hit or miss. For example, a table with too many numbers screams for a plot instead of a table. Basically, challenge lies in using tables at the right time in right way. Luckily, we are in a much better position … [Read more...] about 6 Tips to Make Beautiful Tables with R Package gt
How to Make Histograms with Density Plots with Seaborn histplot?
In this tutorial, we will see how to make a histogram with a density line using Seaborn in Python. With Seaborn version 0.11.0, we have a new function histplot() to make histograms. Here, we will learn how to use Seaborn's histplot() to make a histogram with density line … [Read more...] about How to Make Histograms with Density Plots with Seaborn histplot?
How To Make Heatmaps in R with ComplexHeatmap?
Heatmaps are a great way visualize a numerical dataset in a matrix form. Basically, a heatmap shows the actual data values as colors. When there is a broad trend in data, like change in data over rows or columns of data, a heat map makes it easy to see the broader trend. In … [Read more...] about How To Make Heatmaps in R with ComplexHeatmap?