How to Make Barplots with rounded edges in ggplot

barplot with rounded edge bars in ggplot2 with ggchicklet

In this tutorial, we will learn how make bar plots with rounded edges in ggplot. We will use ggplot2 extension package called ggchicklet developed by the fantastic R developer boB Rudis/hrbrmstr. Let us get started by installing ggchicklet and loading tidyverse. We have installed ggchicklet version 0.5.2. Let us quickly generate data for making a… Continue reading How to Make Barplots with rounded edges in ggplot

Visualizing Binomial Distribution in R

Binomial Probability Distribution as Barplot

In this tutorial, we will learn how to visualize binomial distribution in R. Binomial Distribution is one of the useful discrete probability distributions that comes handy in modelling problems in a number of scenarios. The classic example of binomial distribution is tossing a coin n times and counting the number of heads (successes) for a… Continue reading Visualizing Binomial Distribution in R

How to Reverse Order in Facet in ggplot

How to reverse the order of facets in R

In this tutorial, we will learn how to reverse the order of facets, multiple small plots, made with ggplot2 in R. We will use R package forcats’s handy function fct_rev() to reverse the order of facets made using facet_wrap() function in ggplot2. Let us load tidyverse suite of R packages and palmer penguin dataset for… Continue reading How to Reverse Order in Facet in ggplot

How to Add Colors to Axis Tick Label in ggplot2

How to add colors to axis tick labels using ggtext?

In this tutorial, we will learn how to add colors to axis tick labels in ggplot2. To add colors to axis labels we will use the R package “ggtext: Improved text rendering support for ggplot2” developed by Claus Wilke. Let us get started by loading the packages needed. We will use Palmer Penguin data set… Continue reading How to Add Colors to Axis Tick Label in ggplot2

Exit mobile version