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?
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 Save Multiple DataFrames to a Single Excel File in R?
Int his tutorial, we will see how to save a dataframe into an excel file in R. We will use the R package openxlsx to save dataframes as xlsx files. We will start with writing a single dataframe into an excel file with one sheet. Next, we will see how to save multiple dataframes … [Read more...] about How to Save Multiple DataFrames to a Single Excel File in R?
How To Make Half Violinplot with ggplot2 in R?
Violinplots are a great alternative to boxplot to visualize distribution of multiple variables. In this turtorial, we will learn about, half violin plot, a variant of violinplot in R with ggplot2. It is literally half of a violinplot, in a meaningful way. We will see examples … [Read more...] about How To Make Half Violinplot with ggplot2 in R?
How To Make Violinplot with Data Points in R?
Violinplots are a great alternative to boxplot, as it combines boxplot and density plot. In this tutorial, we will see examples of how to make violinplots with using ggplot2's geom_violin() function. Violinplots are like boxplot for visualizing numerical distributions for … [Read more...] about How To Make Violinplot with Data Points in R?