In this post, we will learn how to make a barplot with error bar using ggplot2 in R. Barplot alone is useful to display counts for multiple categories. However, often there may be uncertainty around the count values and we could represent as error bar on the barplot. Let us load tidyverse packages. We will… Continue reading How To Make Barplots with Error bars in ggplot2?
Tag: ggplot2
How to Add Dollar Symbol for Axis Labels with ggplot2?
In this tutorial, we will learn how to format x or y-axis so that we have dollar symbol in a plot made with ggplot2 in R. Let us create a dataframe with salary education information for developers using the StackOverflow survey results. We first create two lists; one for education and the second for salary.… Continue reading How to Add Dollar Symbol for Axis Labels with ggplot2?
How To Make Title Bold in ggplot2?
One of the common failures of making a data visualization is wither not having a title for plot or having a title that is not easy to read. Making the title in bold can help making the visualiation better. In this post, we will learn how to make the title of plot made with ggplot… Continue reading How To Make Title Bold in ggplot2?
How To Remove X Axis Tick and Axis Text with ggplot2 in R?
Sometimes when you make a plot in R you might want the plot without ticks and text on axis. In this tutorial, we will learn how to remove x-axis or y-axis ticks and the text in R with ggplot2. Let us first load tidyverse, a suite of R packages from RStudio. Let us also load… Continue reading How To Remove X Axis Tick and Axis Text with ggplot2 in R?
How To Make Lollipop Plot in R with ggplot2?
In this post, we will learn how to make lollipop plots in using R. Lollipop plots or lollipop charts kid of related to barplots or scatter plot when one of the variables is categorical variable. We will use NYC flights data from nycflights13 R package. Let us load tidyverse and nycflights13 packages. Data for making… Continue reading How To Make Lollipop Plot in R with ggplot2?