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?
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 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?
How to Make Heatmaps in R with pheatmap?
Heatmaps are one of the ways to visualize quantitative data in two dimension. Heatmaps show the actual data as colors and can reveal common patterns easily. In R, there are multiple ways to make heatmap starting from data in matrix form. In this post, we will learn how to make … [Read more...] about How to Make Heatmaps in R with pheatmap?
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?