In this post we will learn how to fix one of the most common ggplot2 errors, saying "could not find function "ggplot"" Let us consider an example where we are trying to make boxplot using iris, one of the R built-in datasets. We have been extra careful and write a … [Read more...] about ggplot2 errot: how to fix could not find function “ggplot
R
How to Make Grouped Violinplot with jittered data points in R
In this post, we will learn how to make grouped violin plot with jittered data points on top of it using ggplot2 in R. One of the challenges in making grouped violin or box plots with jittered data points is proper alignment of data points and the underlying plot. In an earlier … [Read more...] about How to Make Grouped Violinplot with jittered data points in R
How to Make Barplots with rounded edges in ggplot
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 … [Read more...] about How to Make Barplots with rounded edges in ggplot
Visualizing Binomial Distribution in R
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 … [Read more...] about Visualizing Binomial Distribution in R
How to add water mark on a ggplot
In this tutorial, we will learn how to add water marks to a plot made in R. We will use ggplot2 to make the plot and use the R package cowplot to add water mark on top the plot. The cowplot package developed by Claus Wilke functions to draw with and on plots. These … [Read more...] about How to add water mark on a ggplot