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 … [Read more...] about How to Add Dollar Symbol for Axis Labels with ggplot2?
R
How to Remove Legend in ggplot2
In this post, we will learn how to remove a legend from a plot made with ggplot2 in R. There are a few ways to remove legend in ggplot2. We will see examples using two functions in ggplot2 to remove legend from a plot. We will first use theme() function to remove legend in … [Read more...] about How to Remove Legend in ggplot2
Multiple Density Plots and Coloring by Variable with ggplot2
In this tutorial, we will learn how to make multiple density plots in R using ggplot2. Making multiple density plot is useful, when you have quantitative variable and a categorical variable with multiple levels. First, we will start with making multiple overlapping density plots … [Read more...] about Multiple Density Plots and Coloring by Variable 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 … [Read more...] about 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 … [Read more...] about How To Remove X Axis Tick and Axis Text with ggplot2 in R?